refactor: use flake-parts #89
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: "CI" | |
on: | |
pull_request: | |
push: | |
branches: [main] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: DeterminateSystems/flake-checker-action@v5 | |
- uses: cachix/install-nix-action@v26 | |
with: | |
github_access_token: ${{ secrets.GH_TOKEN }} | |
- uses: cachix/cachix-action@v14 | |
with: | |
name: r17 | |
# If you chose signing key for write access | |
# signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}' | |
# If you chose API tokens for write access OR if you have a private cache | |
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" | |
extraPullNames: pre-commit-hooks,nix-community | |
skipPush: ${{ !(github.ref == 'refs/heads/main' && github.event_name == 'push' && matrix.os == 'macos-14') }} | |
- run: nix flake show . | |
- run: nix build ".#darwinConfigurations.$HOSTNAME.system" | |
env: | |
HOSTNAME: "eR17" |