-
Notifications
You must be signed in to change notification settings - Fork 2
66 lines (52 loc) · 1.99 KB
/
nix-flake-check.yaml
File metadata and controls
66 lines (52 loc) · 1.99 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
---
name: Nix flake check
on:
pull_request:
permissions: {}
jobs:
check-nix:
name: Nix flake check
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
with:
persist-credentials: false
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@b66b36319cc6fde4ea85edd583b088c65d6b8710
- name: Install EricCrosson/retry
uses: EricCrosson/install-github-release-binary@c5bb56044443694d485fa40eb6d6f7ed600ff3b4
with:
targets: EricCrosson/retry@v1
# Retry this step because sometimes there is a network blip
- run: |
: nix flake check
retry --up-to 2x -- nix flake check ./nix --keep-going --print-build-logs
check-darwin-config:
name: Darwin configuration build
runs-on: macos-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
with:
persist-credentials: false
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@b66b36319cc6fde4ea85edd583b088c65d6b8710
- name: Install EricCrosson/retry
uses: EricCrosson/install-github-release-binary@c5bb56044443694d485fa40eb6d6f7ed600ff3b4
with:
targets: EricCrosson/retry@v1
- run: |
: build darwin configuration with stubbed private inputs
retry --up-to 2x -- nix build \
.#darwinConfigurations.MBP-0954.system \
--override-input aws-console-bitgo path:./stubs/private-input-stub \
--override-input aws-saml-bitgo path:./stubs/private-input-stub \
--override-input atlas path:./stubs/private-input-stub \
--override-input cortex path:./stubs/private-input-stub \
--override-input gh-endorse path:./stubs/private-input-stub \
--keep-going --print-build-logs