Merge pull request #328 from a-kenji/update_input_action_rust_overlay #844
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" | |
on: | |
pull_request: | |
branches: [ main ] | |
push: | |
branches: [ main ] | |
jobs: | |
check: | |
name: "nix flake check" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v23 | |
with: | |
extra_nix_config: | | |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} | |
- uses: DeterminateSystems/magic-nix-cache-action@v2 | |
with: | |
diagnostic-endpoint: "" | |
- uses: cachix/cachix-action@v12 | |
with: | |
name: zellij | |
# If you chose API tokens for write access OR if you have a private cache | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- name: "nix flake check" | |
run: nix flake check -Lv | |
build: | |
name: "nix build" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: DeterminateSystems/magic-nix-cache-action@v2 | |
with: | |
diagnostic-endpoint: "" | |
- uses: cachix/install-nix-action@v23 | |
with: | |
extra_nix_config: | | |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} | |
- uses: cachix/cachix-action@v12 | |
with: | |
name: zellij | |
# If you chose API tokens for write access OR if you have a private cache | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- name: "nix build" | |
run: nix build -Lvvv | |
nix-develop: | |
name: "nix develop" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: DeterminateSystems/magic-nix-cache-action@v2 | |
with: | |
diagnostic-endpoint: "" | |
- uses: cachix/install-nix-action@v23 | |
with: | |
extra_nix_config: | | |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} | |
- uses: cachix/cachix-action@v12 | |
with: | |
name: zellij | |
# If you chose API tokens for write access OR if you have a private cache | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- name: "nix develop" | |
run: nix develop -Lvvv | |
format: | |
name: "treefmt" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: DeterminateSystems/magic-nix-cache-action@v2 | |
with: | |
diagnostic-endpoint: "" | |
- uses: cachix/install-nix-action@v23 | |
with: | |
extra_nix_config: | | |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} | |
fetch-depth: 0 | |
- name: "nix shell treefmt" | |
run: nix develop .#fmtShell --command treefmt --fail-on-change | |
actionlint: | |
name: "actionlint" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: DeterminateSystems/magic-nix-cache-action@v2 | |
with: | |
diagnostic-endpoint: "" | |
- uses: cachix/install-nix-action@v23 | |
with: | |
extra_nix_config: | | |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} | |
fetch-depth: 0 | |
- name: "nix shell actionlint" | |
run: nix develop .#actionlintShell --command actionlint |