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
53 lines (43 loc) · 2.15 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
52
53
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)