Skip to content

Commit

Permalink
Refactor actions
Browse files Browse the repository at this point in the history
  • Loading branch information
guillemcordoba committed Apr 15, 2024
1 parent 7a5282d commit 209b140
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 8 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/build-scaffold-remote-zome.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: "build-and-cache-rust-tooling"
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

- name: Install nix
uses: cachix/install-nix-action@v25
with:
nix_path: nixpkgs=channel:nixos-unstable

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

- uses: cachix/cachix-action@v14
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)
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,3 @@ jobs:
nix build -L .#sync-npm-git-dependencies-with-nix
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)
- 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)

0 comments on commit 209b140

Please sign in to comment.