-
Notifications
You must be signed in to change notification settings - Fork 26
40 lines (33 loc) · 1.07 KB
/
ci.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
32
33
34
35
36
37
38
39
40
name: CI
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
strategy:
matrix:
architecture:
- system: x86_64-linux
runner: [linux, X64, drakon64/github-actions-runner-aws, EC2-m7a.2xlarge, EBS-30GB, EBS-32GB-Swap]
- system: aarch64-linux
runner: [linux, ARM64, drakon64/github-actions-runner-aws, EC2-m8g.2xlarge, EBS-30GB, EBS-32GB-Swap]
attribute:
- vm.closure
- vm-stable.closure
name: Build - ${{ matrix.architecture.system }} - ${{ matrix.attribute }}
runs-on: ${{ matrix.architecture.runner }}
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@v14
- uses: cachix/cachix-action@v15
with:
name: cosmic
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- env:
SYSTEM: ${{ matrix.architecture.system }}
ATTRIBUTE: ${{ matrix.attribute }}
run: |
nix -vL build --show-trace --cores 8 --max-jobs 1 --system "$SYSTEM" ".#$ATTRIBUTE"