Skip to content

Commit

Permalink
CI: make publish-cachix use flakes; test nix build
Browse files Browse the repository at this point in the history
  • Loading branch information
lpenz committed Nov 13, 2022
1 parent bfafee0 commit 2bb3593
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,22 @@ jobs:
steps:
- uses: actions/checkout@v3.1.0
- uses: DoozyX/clang-format-lint-action@v0.14
cachix:
nix:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.1.0
- uses: cachix/install-nix-action@v18
with:
nix_path: nixpkgs=channel:nixos-unstable
- run: nix build
- run: nix flake check
publish-cachix:
needs: [ omnilint, clang-format, tests, coverage ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.1.0
with:
fetch-depth: 0
- id: version
uses: docker://lpenz/ghaction-version-gen:0.11.0
- uses: cachix/install-nix-action@v18
Expand All @@ -57,8 +68,8 @@ jobs:
skipPush: ${{ steps.version.outputs.version_commit == '' }}
name: lpenz
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix-build
- run: nix-shell --run "echo OK"
- run: nix build
- run: nix flake check
publish-packagecloud:
needs: [ omnilint, clang-format, tests, coverage ]
runs-on: ubuntu-latest
Expand Down

0 comments on commit 2bb3593

Please sign in to comment.