From 72d31338ddb2142d2d3f2c46f41e15dd2572bf2b Mon Sep 17 00:00:00 2001 From: "guillem.cordoba" Date: Tue, 12 Mar 2024 18:14:58 +0100 Subject: [PATCH] Attempt CI --- ...build-replace-npm-dependencies-sources.yml | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/build-replace-npm-dependencies-sources.yml diff --git a/.github/workflows/build-replace-npm-dependencies-sources.yml b/.github/workflows/build-replace-npm-dependencies-sources.yml new file mode 100644 index 0000000..84ed898 --- /dev/null +++ b/.github/workflows/build-replace-npm-dependencies-sources.yml @@ -0,0 +1,35 @@ +name: "build-replace-npm-dependencies-sources" +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@v2 + + - name: Install nix + uses: cachix/install-nix-action@v18 + with: + install_url: https://releases.nixos.org/nix/nix-2.12.0/install + extra_nix_config: | + experimental-features = flakes nix-command + + - uses: cachix/cachix-action@v10 + with: + name: holochain-ci + + - name: Build zomes + env: + CACHIX_AUTH_TOKEN: "${{ secrets.CACHIX_TOKEN_HOLOCHAIN_OPEN_DEV }}" + run: | + nix build -L .#replace-npm-dependencies-sources | cachix push holochain-open-dev + cachix pin holochain-open-dev replace-npm-dependencies-sources $(nix path-info .#replace-npm-dependencies-sources)