nix: add Gh workflow for building Flake packages #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| name: ci / nix-builds | |
| on: | |
| pull_request: | |
| branches: [master] | |
| jobs: | |
| build: | |
| name: Build Nix Flake packages | |
| runs-on: [self-hosted, Linux] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Build library | |
| shell: bash | |
| run: | | |
| nix build \ | |
| --print-out-paths \ | |
| --accept-flake-config \ | |
| '.?submodules=1#libsds' | |
| - name: Build Android library | |
| shell: bash | |
| run: | | |
| nix build \ | |
| --print-out-paths \ | |
| --accept-flake-config \ | |
| '.?submodules=1#libsds-android-arm64' |