Merge pull request #39 from humanoid-path-planner/pre-commit-ci-updat… #15
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: "Nix CI" | |
on: [pull_request, push] | |
jobs: | |
tests: | |
name: "Nix build on ${{ matrix.os }}" | |
runs-on: "${{ matrix.os }}-latest" | |
strategy: | |
matrix: | |
os: [ubuntu] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: DeterminateSystems/nix-installer-action@main | |
- uses: DeterminateSystems/magic-nix-cache-action@main | |
- run: nix --accept-flake-config build -L | |
- run: nix --accept-flake-config run .#cachix push gepetto $(readlink result) | |
if: github.repository_owner == 'humanoid-path-planner' | |
env: | |
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }} |