Skip to content

Use crate2nix

Use crate2nix #222

Workflow file for this run

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 }}
# - uses: DeterminateSystems/nix-installer-action@v14
- name: Setup Cachix
uses: cachix/cachix-action@v15
with:
name: bootstrap-academy
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
useDaemon: false
# - run: nix eval --raw .#default.outPath
- run: |
nix build .#generated
ls -alR result/
# - run: |
# set -x
# nix build .#src
# readlink result
# nix build .#generated
# readlink result
# sha256sum result/crate/Cargo-generated.nix
# nix build .#cargoNix.workspaceMembers.challenges.build
# readlink result
# - run: nix build
# - run: readlink result