Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Bumped to hc 0.3

Bumped to hc 0.3 #47

name: "Build and cache nix packages"
on:
push:
branches: [ main ]
jobs:
testbuild:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- 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
- uses: cachix/cachix-action@v14
with:
name: darksoil-studio
- name: Install and test
env:
CACHIX_AUTH_TOKEN: "${{ secrets.DARKSOIL_CACHIX_AUTH_TOKEN }}"
run: |
cachix watch-exec darksoil-studio -- nix develop --accept-flake-config --command bash -c "pnpm i && pnpm t && pnpm -F @darksoil-studio/notifications build"
- name: Build zomes
env:
CACHIX_AUTH_TOKEN: "${{ secrets.DARKSOIL_CACHIX_AUTH_TOKEN }}"
run: |
nix build --accept-flake-config -L .#notifications_integrity
cachix push darksoil-studio $(nix path-info --accept-flake-config .#notifications_integrity)
cachix pin darksoil-studio notifications_integrity_debug $(nix path-info --accept-flake-config .#notifications_integrity)
nix build --accept-flake-config -L .#notifications_integrity.meta.release
cachix push darksoil-studio $(nix path-info --accept-flake-config .#notifications_integrity.meta.release)
cachix pin darksoil-studio notifications_integrity $(nix path-info --accept-flake-config .#notifications_integrity.meta.release)
nix build --accept-flake-config -L .#notifications
cachix push darksoil-studio $(nix path-info --accept-flake-config .#notifications)
cachix pin darksoil-studio notifications_debug $(nix path-info --accept-flake-config .#notifications)
nix build --accept-flake-config -L .#notifications.meta.release
cachix push darksoil-studio $(nix path-info --accept-flake-config .#notifications.meta.release)
cachix pin darksoil-studio notifications $(nix path-info --accept-flake-config .#notifications.meta.release)