Macos support #29
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" | |
| on: | |
| push: | |
| branches: | |
| - devel | |
| - master | |
| - main | |
| pull_request: | |
| branches: | |
| - devel | |
| - master | |
| - main | |
| jobs: | |
| nix: | |
| runs-on: "${{ matrix.os }}-latest" | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - os: ubuntu | |
| nix-system: x86_64-linux | |
| - os: macos | |
| nix-system: aarch64-darwin | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: cachix/install-nix-action@v31 | |
| - uses: cachix/cachix-action@v17 | |
| with: | |
| name: mc-rtc-nix | |
| authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
| extraPullNames: "ros,gepetto" | |
| # Dynamically inject the correct system into the nix build command | |
| - run: nix build -L ".#devShells.${{ matrix.nix-system }}.panda-controller-example-full" | |
| check: | |
| if: always() | |
| name: check-macos-linux-nix | |
| runs-on: ubuntu-latest | |
| needs: | |
| - nix | |
| steps: | |
| - uses: re-actors/alls-green@release/v1 | |
| with: | |
| jobs: ${{ toJSON(needs) }} |