Refactor actions #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |