Add separate check.yaml and use main branch of cache action
This commit is contained in:
parent
15c8020484
commit
3fafc77f09
12
.github/workflows/build.yaml
vendored
12
.github/workflows/build.yaml
vendored
|
@ -5,20 +5,12 @@ on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lints:
|
|
||||||
runs-on: ubuntu-22.04
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- uses: DeterminateSystems/flake-checker-action@v4
|
|
||||||
with:
|
|
||||||
fail-mode: true
|
|
||||||
|
|
||||||
build-artifacts-X64-macOS:
|
build-artifacts-X64-macOS:
|
||||||
runs-on: macos-12
|
runs-on: macos-12
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- uses: DeterminateSystems/nix-installer-action-cache@checker
|
- uses: DeterminateSystems/nix-installer-action-cache@main
|
||||||
|
|
||||||
- name: Build package
|
- name: Build package
|
||||||
run: "nix build .# -L"
|
run: "nix build .# -L"
|
||||||
|
@ -36,7 +28,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- uses: DeterminateSystems/nix-installer-action-cache@checker
|
- uses: DeterminateSystems/nix-installer-action-cache@main
|
||||||
|
|
||||||
- name: Build package
|
- name: Build package
|
||||||
run: "nix build .# -L"
|
run: "nix build .# -L"
|
||||||
|
|
16
.github/workflows/check.yaml
vendored
Normal file
16
.github/workflows/check.yaml
vendored
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
name: Run checks
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
checks:
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Check health of flake.lock
|
||||||
|
uses: DeterminateSystems/flake-checker-action@v4
|
||||||
|
with:
|
||||||
|
fail-mode: true
|
Loading…
Reference in a new issue