Use crate2nix #216
Workflow file for this run
This file contains 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: build | |
on: | |
push: | |
branches: [develop] | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: build (${{ matrix.system }}) | |
strategy: | |
matrix: | |
system: | |
- x86_64-linux | |
# - aarch64-linux | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
# - run: sudo apt-get update && sudo apt-get install -y qemu-user-static | |
- name: Setup Nix | |
uses: cachix/install-nix-action@V27 | |
with: | |
github_access_token: ${{ secrets.GITHUB_TOKEN }} | |
extra_nix_config: | | |
system = ${{ matrix.system }} | |
- name: Setup Cachix | |
uses: cachix/cachix-action@v15 | |
with: | |
name: bootstrap-academy | |
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} | |
useDaemon: false | |
- run: | | |
set -x | |
nix build .#src | |
readlink result | |
nix build .#generated | |
readlink result | |
- run: nix build | |
- run: readlink result |