This repository has been archived by the owner on Nov 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (41 loc) · 1.7 KB
/
build-and-cache.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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
run: |
nix develop --command bash -c "pnpm i && pnpm t && pnpm -F @darksoil-studio/notifications build"
- name: Build zomes
env:
CACHIX_AUTH_TOKEN: "$"
run: |
nix build -L .#notifications_integrity.meta.debug
cachix push darksoil-studio $(nix path-info .#notifications_integrity.meta.debug)
cachix pin darksoil-studio notifications_integrity_debug $(nix path-info .#notifications_integrity.meta.debug)
nix build -L .#notifications_integrity
cachix push darksoil-studio $(nix path-info .#notifications_integrity)
cachix pin darksoil-studio notifications_integrity $(nix path-info .#notifications_integrity)
nix build -L .#notifications.meta.debug
cachix push darksoil-studio $(nix path-info .#notifications.meta.debug)
cachix pin darksoil-studio notifications_debug $(nix path-info .#notifications.meta.debug)
nix build -L .#notifications
cachix push darksoil-studio $(nix path-info .#notifications)
cachix pin darksoil-studio notifications$(nix path-info .#notifications)