DOC How to run motus3 with NGLess #114
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 & test (nix)" | |
on: | |
pull_request: | |
push: | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v25 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
extra_nix_config: | | |
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= | |
substituters = https://cache.nixos.org https://nix-community.cachix.org https://cache.iog.io | |
- uses: cachix/cachix-action@v14 | |
with: | |
name: luispedro | |
# If you chose API tokens for write access OR if you have a private cache | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- run: nix build -f release.nix NGLess.components.exes.ngless --out-link ngless-dyn | |
- run: nix build -f release.nix NGLess.components.tests.nglesstest --out-link ngless-test-dyn | |
- run: ./ngless-test-dyn/bin/nglesstest | |
- run: nix-shell --pure --command ./run-tests.sh | |