-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (39 loc) · 1.31 KB
/
build_nix.yml
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
name: Nix
on:
push:
branches:
- main
- release-*
schedule:
- cron: '0 0 * * 1'
workflow_dispatch:
jobs:
nix:
runs-on: ubuntu-latest
timeout-minutes: 90
steps:
- name: Configure Git
run: |
git config --global url."https://ancient123:${{ secrets.ORG_GITHUB_PAT }}@github.com/".insteadOf git://github.com/
git config --global url."https://ancient123:${{ secrets.ORG_GITHUB_PAT }}@github.com/".insteadOf ssh://[email protected]/
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v24
# - uses: cachix/cachix-action@v12
# with:
# name: espresso-systems-private
# authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Cache cargo
uses: actions/[email protected]
with:
path: |
~/.cargo-nix/registry/index
~/.cargo-nix/registry/cache
~/.cargo-nix/git
target
key: espresso-nix-v2-${{ hashFiles('Cargo.lock') }}
- name: "Sanity Check: nix environment loads"
run: nix-shell --run "echo Success"
- name: "Sanity Check: nix environment builds all targets"
run: nix-shell --run "cargo build --all-targets --all-features --release --workspace"