mirror of
https://github.com/logos-messaging/nim-sds.git
synced 2026-02-16 20:13:23 +00:00
Changes include: - Removing all submodules from vendor folder. - Updating sds.nimble with required depndencies. - Generating a nimble.lock file using Nimble. - Updated Nim code to reference depndencies correctly. - Added nix/deps.nix fixed output derivation that calls Nimble. - Updated nixpkgs to use 25.11 commit which provides Nimbe 0.20.1. - Disabled Nix Android builds on MacOS due to Nimble segfault. Signed-off-by: Jakub Sokołowski <jakub@status.im>
59 lines
1.4 KiB
YAML
59 lines
1.4 KiB
YAML
name: ci / nix
|
|
permissions:
|
|
contents: read
|
|
pull-requests: read
|
|
checks: write
|
|
on:
|
|
pull_request:
|
|
branches: [master]
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
system:
|
|
- aarch64-darwin
|
|
- x86_64-linux
|
|
nixpkg:
|
|
- libsds
|
|
- libsds-android-arm64
|
|
- libsds-android-amd64
|
|
- libsds-android-x86
|
|
- libsds-android-arm
|
|
|
|
include:
|
|
- system: aarch64-darwin
|
|
runs_on: [self-hosted, macOS, ARM64]
|
|
|
|
- system: x86_64-linux
|
|
runs_on: [self-hosted, Linux, X64]
|
|
|
|
# Nimble segfaults on MacOS hosts.
|
|
exclude:
|
|
- system: aarch64-darwin
|
|
nixpkg: libsds-android-arm64
|
|
- system: aarch64-darwin
|
|
nixpkg: libsds-android-amd64
|
|
- system: aarch64-darwin
|
|
nixpkg: libsds-android-x86
|
|
- system: aarch64-darwin
|
|
nixpkg: libsds-android-arm
|
|
|
|
name: '${{ matrix.system }} / ${{ matrix.nixpkg }}'
|
|
runs-on: ${{ matrix.runs_on }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: 'Run Nix build for ${{ matrix.nixpkg }}'
|
|
shell: bash
|
|
run: |
|
|
nix build -L '.#${{ matrix.nixpkg }}' \
|
|
--print-out-paths --accept-flake-config
|
|
|
|
- name: 'Show result contents'
|
|
shell: bash
|
|
run: find result/ -type f
|