-
Notifications
You must be signed in to change notification settings - Fork 48
43 lines (36 loc) · 983 Bytes
/
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
name: Build with Nix Workflow
on:
push:
branches:
- 'develop'
- 'main'
- 'nix*'
schedule:
- cron: '0 0 * * 1'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
nix-build:
runs-on: ubuntu-latest
timeout-minutes: 120
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v23
- name: Nix Caching
uses: cachix/cachix-action@v12
with:
name: espresso-systems-private
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
skipPush: ${{ github.actor == 'dependabot[bot]' }}
- name: Enable Rust Cache
uses: Swatinem/rust-cache@v2
with:
workspaces: ". -> target_dirs/nix_rustc"
# sanity check that repository builds with nix
- name: Build
run: |
nix develop -c just async_std build