-
Notifications
You must be signed in to change notification settings - Fork 2
95 lines (93 loc) · 2.45 KB
/
build.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
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
83
84
85
86
87
88
89
90
91
92
93
94
95
name: Build
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
- name: Setup Cachix
uses: cachix/cachix-action@v12
with:
name: saber
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- name: Check flake
run: nix flake check -v --show-trace --no-update-lock-file
- run: nix build --show-trace --print-build-logs
build-packages:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-12]
package:
- solana-1_8-basic
- solana-1_9-basic
- solana-1_10-basic
- solana-1_11-basic
- solana-1_13-basic
- solana-1_17-basic
- solana-basic
- spl-token-cli
- anchor-0_15_0
- anchor-0_16_1
- anchor-0_17_0
- anchor-0_18_0
- anchor-0_18_2
- anchor-0_19_0
- anchor-0_20_0
- anchor-0_20_1
- anchor-0_21_0
- anchor-0_22_0
- anchor-0_23_0
- anchor-0_24_0
- anchor-0_24_2
- anchor-0_25
- anchor-0_26
- anchor-0_27
- anchor-0_28
- anchor-0_29
- anchor
- saber-devenv
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
- name: Setup Cachix
uses: cachix/cachix-action@v12
with:
name: saber
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- run: nix build --show-trace --print-build-logs .#${{ matrix.package }}
build-packages-linux-only:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
package:
- solana-1_8-full
- solana-1_9-full
- solana-1_10-full
- solana-1_11-full
- solana-1_13-full
- solana-1_17-full
- solana-full
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
- name: Setup Cachix
uses: cachix/cachix-action@v12
with:
name: saber
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- run: nix build --show-trace --print-build-logs .#${{ matrix.package }}