-
Notifications
You must be signed in to change notification settings - Fork 102
38 lines (32 loc) · 1009 Bytes
/
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
name: Build and cache with Nix
on:
workflow_dispatch:
push:
paths-ignore:
- '.github/**'
jobs:
build-and-cache:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, mac-m1]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Nix with caching
uses: kadena-io/setup-nix-with-cache@v2
with:
cache_url: s3://nixcache.chainweb.com?region=us-east-1
signing_private_key: ${{ secrets.NIX_CACHE_PRIVATE_KEY }}
- name: Set up AWS credentials
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.NIX_CACHE_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.NIX_CACHE_AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
- name: Build and cache artifacts
timeout-minutes: 740
run: |
echo Building the project and its devShell
nix build .#check --log-lines 500 --show-trace