-
Notifications
You must be signed in to change notification settings - Fork 43
31 lines (31 loc) · 953 Bytes
/
build.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
name: "Build"
on: [push, pull_request]
jobs:
build:
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ubuntu-20.04]
steps:
- uses: actions/checkout@v3
with:
# Nix Flakes doesn't work on shallow clones
fetch-depth: 0
- uses: cachix/install-nix-action@v18
with:
install_url: https://github.com/numtide/nix-flakes-installer/releases/download/nix-2.4pre20210604_8e6ee1b/install
extra_nix_config: |
experimental-features = nix-command flakes ca-references
- name: nix build
run: |
nix build
- name: nix log
if: ${{ always() }}
run: |
nix log &> ${{ matrix.os }}-monomer.log
- name: upload ${{ matrix.os }}-monomer.log
if: ${{ always() }}
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.os }}-monomer.log
path: ${{ matrix.os }}-monomer.log