-
Notifications
You must be signed in to change notification settings - Fork 4
61 lines (49 loc) · 1.8 KB
/
kernel_tests.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
name: Test drivers against a matrix of kernels/distros
on:
workflow_dispatch:
schedule:
- cron: '0 8 * * *' # every day at 8am
# Checks if any concurrent jobs under the same pull request or branch are being executed
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
test-kernels:
name: build-latest-kernel
strategy:
fail-fast: false
matrix:
architecture: [X64, ARM64]
runs-on: [ "self-hosted", "linux", "${{matrix.architecture}}" ]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Run kernels tests
run: |
ansible-playbook master-playbook.yml --extra-vars "run_id=id-${{ github.run_id }} output_dir=~/ansible_output_${{ github.run_id }}" || :
- name: Tar output files
run: |
tar -cvf ansible_output.tar ~/ansible_output_${{ github.run_id }}
- uses: actions/upload-artifact@v3
with:
name: ansible_output_${{matrix.architecture}}
path: ansible_output.tar
- name: Build matrix_gen
working-directory: ./matrix_gen
env:
GOPATH: /root/go
GOCACHE: /root/.cache/go-build
run: |
go build .
- name: Generate new matrix
working-directory: ./matrix_gen
run: |
./matrix_gen --root-folder ~/ansible_output_${{ github.run_id }}
- uses: actions/upload-artifact@v3
with:
name: matrix_${{matrix.architecture}}
path: ./matrix_gen/matrix.md
- name: Cleanup
if: always()
run: |
ansible-playbook clean-up.yml --extra-vars "run_id=id-${{ github.run_id }} output_dir=~/ansible_output_${{ github.run_id }}" || :