File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed
template/{% if github_actions %}.github{% endif %}/workflows Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change 99 branches:
1010 - master
1111
12+ env:
13+ NIX_CHANNEL: nixpkgs=channel:nixos-22.05
14+
1215jobs:
1316 # This job checks if an identical workflow is being triggered by different
1417 # event and skips it. For instance there is no need to run the same pipeline
2427 skip_after_successful_duplicate: 'true'
2528 concurrent_skipping: same_content
2629 do_not_skip: '["pull_request", "workflow_dispatch", "schedule"]'
30+ nixpkgs-fmt:
31+ needs: pre_job
32+ if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
33+ runs-on: ubuntu-latest
34+
35+ steps:
36+ - uses: cachix/install-nix-action@v17
37+ with:
38+ nix_path: ${{ env.NIX_CHANNEL }}
39+ - uses: actions/checkout@v3
40+ - name: Check format
41+ run: nix-shell -p nixpkgs-fmt --run 'nixpkgs-fmt --check .'
2742 nix-build:
2843 needs: pre_job
2944 if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
3550 uses: cachix/install-nix-action@v17
3651 with:
3752 extra_nix_config: "system-features = nixos-test benchmark big-parallel kvm"
38- nix_path: nixpkgs=channel:nixos-22.05
53+ nix_path: ${{ env.NIX_CHANNEL }}
3954 # Remove bellow step if you do not want to use Cachix - Nix binary cache.
4055 # For OpenSource projects there is free 5GB of storage.
4156 # https://www.cachix.org
6681 - name: Install Nix
6782 uses: cachix/install-nix-action@v17
6883 with:
69- nix_path: nixpkgs=channel:nixos-22.05
84+ nix_path: ${{ env.NIX_CHANNEL }}
7085 # Remove bellow step if you do not want to use Cachix - Nix binary cache.
7186 # For OpenSource projects there is free 5GB of storage.
7287 # https://www.cachix.org
You can’t perform that action at this time.
0 commit comments