-
Notifications
You must be signed in to change notification settings - Fork 5
67 lines (63 loc) · 2.13 KB
/
nightly.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
name: Nightly Kernel Check
on:
schedule:
- cron: '0 5 * * *'
jobs:
build_userland:
name: Build Userland
if: startsWith(github.ref, 'refs/heads/')
runs-on: ubuntu-20.04
strategy:
matrix:
zfs:
- 2.1.5
steps:
- uses: actions/checkout@v1
- name: Create Kernel Build File
run: ./scripts/setup_kernel.sh
- name: Output Build File
run: cat src/$(uname -r)/uname
- name: Build
run: ./build_local.sh -b ${{ secrets.s3_url }} -u -z ${{ matrix.zfs }} -d $GITHUB_WORKSPACE -r $(uname -r)
- name: Publish
run: ./publish ${{ secrets.s3_bucket }}
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: us-west-2
get_kernels_ubuntu-20:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '^1.18.0'
- name: Setup GO environment
run: |
go mod download
- id: set-matrix
run: echo "::set-output name=matrix::$(go run cmd/kernels/kernels.go -l ubuntu22)"
env:
GITHUB_PAT: ${{ secrets.REPO_TOKEN }}
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
build_kernel_ubuntu-20:
name: Build Kernel
needs: get_kernels_ubuntu-20
if: startsWith(github.ref, 'refs/heads/')
runs-on: ubuntu-20.04
strategy:
matrix:
zfs:
- 2.1.5
kernels: ${{ fromJson(needs.get_kernels_ubuntu-20.outputs.matrix) }}
steps:
- uses: actions/checkout@v1
- name: Create Kernel Build File
run: ./scripts/setup_kernel.sh
- name: Output Build File
run: cat src/$(uname -r)/uname
- name: Build
run: make build S3=${{ secrets.s3_url }} ZFS=${{ matrix.zfs }} KERNEL=${{ matrix.kernels }}
- name: Publish
run: docker run -e "AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_ID }}" -e "AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_ACCESS_KEY }}" -e "AWS_DEFAULT_REGION=us-west-2" zfs-builder /publish ${{ secrets.s3_bucket }}