Skip to content

Commit

Permalink
ci: Use the new cachix-push leveraging omci.json
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Nov 6, 2024
1 parent 769d7b7 commit 0a5a0a1
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,16 @@ jobs:

# Push the Nix cache
- name: Push to cachix
if: github.ref == 'refs/heads/main'
run: nix --option system "${{ matrix.system }}" run .#cachix-push
env:
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
if: env.BRANCH_NAME == 'main'
run: |
nix run github:juspay/cachix-push -- \
--subflake omnix \
--prefix "${BRANCH_NAME}" \
--cache om \
< $HOME/omci.json
static-binary-check:
needs: main
Expand Down

0 comments on commit 0a5a0a1

Please sign in to comment.