-
Notifications
You must be signed in to change notification settings - Fork 0
82 lines (69 loc) · 1.98 KB
/
Copy pathci.yml
File metadata and controls
82 lines (69 loc) · 1.98 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: build packages and push cache
on:
push:
branches:
- master
schedule:
- cron: "0 6 * * *"
jobs:
packages-default:
env:
NIXPKGS_OVERRIDE: ""
strategy:
matrix: &platform_matrix
platform:
- name: linux-x64-self-hosted
runs-on:
- self-hosted
- Linux
- X64
- name: linux-arm64-self-hosted
runs-on:
- self-hosted
- Linux
- ARM64
- name: macos-arm64
runs-on: macos-14
runs-on: ${{ matrix.platform.runs-on }}
steps: &build_steps
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
clean: true
- name: Install nix
uses: cachix/install-nix-action@v31
with:
extra_nix_config: |
experimental-features = nix-command flakes
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- name: Setup Cachix
uses: cachix/cachix-action@v16
with:
name: pspdev
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- name: Build nix packages
run: |
system="$(nix eval --impure --raw --expr builtins.currentSystem)"
nix build \
".#checks.${system}.build" \
--print-build-logs \
${{ env.NIXPKGS_OVERRIDE }}
packages-unstable:
if: ${{ github.event_name != 'schedule' }}
needs: packages-default
env:
NIXPKGS_OVERRIDE: --override-input nixpkgs github:NixOS/nixpkgs/nixos-unstable
strategy:
matrix: *platform_matrix
runs-on: ${{ matrix.platform.runs-on }}
steps: *build_steps
packages-master:
if: ${{ github.event_name != 'schedule' }}
needs: packages-unstable
env:
NIXPKGS_OVERRIDE: --override-input nixpkgs github:NixOS/nixpkgs/master
strategy:
matrix: *platform_matrix
runs-on: ${{ matrix.platform.runs-on }}
steps: *build_steps