mirror of
https://github.com/fjvallarino/monomer.git
synced 2024-08-16 23:40:54 +03:00
32 lines
953 B
YAML
32 lines
953 B
YAML
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
|