Skip to content

Commit

Permalink
Fixed workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
guillemcordoba committed Aug 17, 2024
1 parent 2a49f91 commit 674eb22
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 20 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/build-compare-dnas-integrity.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: "build-compare-dnas-integrity"
on:
# Trigger the workflow on push or pull request,
# but only for the main branch
push:
branches: [ main ]

jobs:
build-and-cache:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4

uses: cachix/install-nix-action@v27
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
nix_path: nixpkgs=channel:nixos-24.05

- uses: cachix/cachix-action@v15
with:
name: holochain-ci

- uses: cachix/cachix-action@v15
with:
name: holochain-open-dev

- name: Build compare-dnas-integrity
env:
CACHIX_AUTH_TOKEN: "${{ secrets.CACHIX_TOKEN_HOLOCHAIN_OPEN_DEV }}"
run: |
cachix watch-exec holochain-open-dev -- nix build --no-update-lock-file --accept-flake-config -L .#compare-dnas-integrity
cachix push holochain-open-dev $(nix path-info --json --accept-flake-config --no-warn-dirty .#compare-dnas-integrity | nix run nixpkgs#jq -- -r 'keys[0]')
cachix pin holochain-open-dev compare-dnas-integrity $(nix path-info --json --accept-flake-config --no-warn-dirty .#compare-dnas-integrity | nix run nixpkgs#jq -- -r 'keys[0]')
16 changes: 8 additions & 8 deletions .github/workflows/build-scaffold-remote-zome.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,23 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Install nix
uses: cachix/install-nix-action@v25
uses: cachix/install-nix-action@v27
with:
nix_path: nixpkgs=channel:nixos-unstable
github_access_token: ${{ secrets.GITHUB_TOKEN }}
nix_path: nixpkgs=channel:nixos-24.05

- uses: cachix/cachix-action@v14
- uses: cachix/cachix-action@v15
with:
name: holochain-ci

- uses: cachix/cachix-action@v14
- uses: cachix/cachix-action@v15
with:
name: holochain-open-dev

- name: Build scaffold-remote-zome
env:
CACHIX_AUTH_TOKEN: "${{ secrets.CACHIX_TOKEN_HOLOCHAIN_OPEN_DEV }}"
run: |
nix build -L .#scaffold-remote-zome
cachix push holochain-open-dev $(nix path-info .#scaffold-remote-zome)
cachix pin holochain-open-dev scaffold-remote-zome $(nix path-info .#scaffold-remote-zome)
cachix watch-exec holochain-open-dev -- nix build --no-update-lock-file --accept-flake-config -L .#scaffold-remote-zome
cachix push holochain-open-dev $(nix path-info --json --accept-flake-config --no-warn-dirty .#scaffold-remote-zome | nix run nixpkgs#jq -- -r 'keys[0]')
cachix pin holochain-open-dev scaffold-remote-zome $(nix path-info --json --accept-flake-config --no-warn-dirty .#scaffold-remote-zome | nix run nixpkgs#jq -- -r 'keys[0]')
20 changes: 8 additions & 12 deletions .github/workflows/build-sync-npm-git-dependencies-with-nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,27 +18,23 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Install nix
uses: cachix/install-nix-action@v25
uses: cachix/install-nix-action@v27
with:
nix_path: nixpkgs=channel:nixos-unstable
github_access_token: ${{ secrets.GITHUB_TOKEN }}
nix_path: nixpkgs=channel:nixos-24.05

- uses: cachix/cachix-action@v14
- uses: cachix/cachix-action@v15
with:
name: holochain-ci

- uses: cachix/cachix-action@v14
- uses: cachix/cachix-action@v15
with:
name: holochain-open-dev

- name: Build sync-npm-git-dependencies-with-nix
run: |
nix build -L .#sync-npm-git-dependencies-with-nix
- name: Cache sync-npm-git-dependencies-with-nix
if: github.event_name != 'pull_request'
env:
CACHIX_AUTH_TOKEN: "${{ secrets.CACHIX_TOKEN_HOLOCHAIN_OPEN_DEV }}"
run: |
cachix push holochain-open-dev $(nix path-info .#sync-npm-git-dependencies-with-nix)
cachix pin holochain-open-dev sync-npm-git-dependencies-with-nix $(nix path-info .#sync-npm-git-dependencies-with-nix)
cachix watch-exec holochain-open-dev -- nix build --no-update-lock-file --accept-flake-config -L .#sync-npm-git-dependencies-with-nix
cachix push holochain-open-dev $(nix path-info --json --accept-flake-config --no-warn-dirty .#sync-npm-git-dependencies-with-nix | nix run nixpkgs#jq -- -r 'keys[0]')
cachix pin holochain-open-dev sync-npm-git-dependencies-with-nix $(nix path-info --json --accept-flake-config --no-warn-dirty .#sync-npm-git-dependencies-with-nix | nix run nixpkgs#jq -- -r 'keys[0]')

0 comments on commit 674eb22

Please sign in to comment.