-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (33 loc) · 865 Bytes
/
ci.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
name: CI
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
Nix:
timeout-minutes: 360
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-12 ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v23
with:
nix_path: nixpkgs=channel:nixos-22.11
github_access_token: ${{ secrets.GITHUB_TOKEN }}
extra_nix_config:
accept-flake-config = true
- uses: cachix/cachix-action@v14
with:
name: mcl-blockchain-packages
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Run the Magic Nix Cache
uses: DeterminateSystems/magic-nix-cache-action@v2
- name: Build Nix dev shell
run: ./scripts/ci.sh