-
Notifications
You must be signed in to change notification settings - Fork 9
72 lines (72 loc) · 1.9 KB
/
next.yaml
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
67
68
69
70
71
72
name: "nixcfg-next"
concurrency: "nixcfg-next"
on:
schedule:
- cron: '0/20 * * * *'
workflow_dispatch:
inputs:
activate:
default: false
required: true
type: choice
options:
- "true"
- "false"
push:
branches:
- "main"
jobs:
"update":
runs-on: "raisin-default"
steps:
- name: checkout
uses: actions/checkout@v4
with:
ref: main
- name: update
run: |
nix develop .#ci -c ./ci/next.nu
"build-cache":
needs: [ "update" ]
strategy:
fail-fast: false
matrix:
job:
- {"runs-on": "raisin-default", "bundle": "x86_64-linux"}
- {"runs-on": "rock5b-default", "bundle": "aarch64-linux"}
runs-on: ${{ matrix.job.runs-on }}
steps:
- name: checkout
uses: actions/checkout@v4
with:
ref: main-next-wip
- name: build-cache
run: |
nix develop .#ci -c ./ci/build.nu
# bundle is implicit... could remove from matrix ?
# ${{ matrix.job.bundle }}
# "finalize":
# # TODO: must finalize/promote the built branch after "build"
# # completes, basically into the results branch
# # this is... painfully I guess needed to merge results, we could just
# # drop all of this for now, since we never activate these generations from CI
# "deploy":
# strategy:
# fail-fast: false
# matrix:
# host:
# - name: "raisin"
# - name: "rock5b"
# - name: "slynux"
# - name: "h96maxv58"
# runs-on: "slynux-deployer"
# needs: [ "update" ]
# steps:
# - name: checkout
# uses: actions/checkout@v4
# with:
# ref: main-next-results
# - name: deploy-${{matrix.host.name}}
# run: |
# timeout 600 \
# nix develop .#ci -c ./ci/next.nu deploy --activate=${{ inputs.activate || 'false' }} ${{matrix.host.name}}