Skip to content

PackageManager serialize #64

PackageManager serialize

PackageManager serialize #64

name: "build-sync-npm-git-dependencies-with-nix"
on:
# Trigger the workflow on push or pull request,
# but only for the main branch
push:
branches: [ main ]
jobs:
build-sync-npm-git-dependencies-with-nix:
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 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)