show trace on nix flake check #550
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: "Check & Cachix" | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
devshell: | |
strategy: | |
fail-fast: false | |
matrix: | |
runsOn: | |
- ubuntu-22.04 | |
- macos-12 | |
runs-on: ${{ matrix.runsOn }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v23 | |
- uses: cachix/cachix-action@v12 | |
with: | |
name: igm | |
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" | |
- run: nix -Lv flake check --show-trace | |
- run: nix -Lv develop -c echo OK | |
check: | |
strategy: | |
fail-fast: false | |
matrix: | |
runsOn: | |
- ubuntu-20.04 | |
- ubuntu-22.04 | |
- macos-12 | |
runs-on: ${{ matrix.runsOn }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v23 | |
- uses: cachix/cachix-action@v12 | |
with: | |
name: igm | |
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" | |
- run: nix -Lv flake check --show-trace | |
working-directory: nix/ | |
- run: nix -Lv develop -c echo OK | |
linux: | |
strategy: | |
fail-fast: false | |
matrix: | |
nixosConfiguration: | |
- ci-home | |
- ci-bare | |
- vbox-host | |
runs-on: ubuntu-latest | |
steps: | |
- run: sudo apt-get clean | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v23 | |
- uses: cachix/cachix-action@v12 | |
with: | |
name: igm | |
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" | |
- run: nix -Lv build "./nix#nixosConfigurations.${{ matrix.nixosConfiguration }}.config.system.build.toplevel" | |
macos-latest: | |
strategy: | |
fail-fast: false | |
matrix: | |
runsOn: | |
- macos-12 | |
runs-on: ${{ matrix.runsOn }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v23 | |
- uses: cachix/cachix-action@v12 | |
with: | |
name: igm | |
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" | |
- run: nix -Lv build "nix/#darwinConfigurations.ci-personal.system" | |
- run: nix -Lv develop -c echo OK |