-
Notifications
You must be signed in to change notification settings - Fork 1
71 lines (55 loc) · 1.71 KB
/
shim_test.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
name: Shim library test
on:
pull_request:
types: [opened, edited, reopened]
push:
branches:
- development
- stable
paths-ignore:
- '.github/**'
- 'debian/changelog'
- 'TODO.txt'
workflow_dispatch:
inputs:
debug_enabled:
type: boolean
description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate
)'
required: false
default: false
jobs:
run_sr_insects_tests:
strategy:
# Don't cancel the entire matrix when one job fails
fail-fast: false
matrix:
which_test: [ "test_shim_post", "test_shim_copy_mirror", "test_shim_copy_strip", "test_shim_copy_strip_slash", "test_shim_copy_baseDir" ]
osver: [ "ubuntu-20.04", "ubuntu-22.04" ]
runs-on: ${{ matrix.osver }}
name: ${{ matrix.which_test }} test on ${{ matrix.osver }}
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
./vm_autoconfig.sh
./vm_ssh_localhost.sh
- name: Build binaries
run: |
make
- name: Run ${{ matrix.which_test }}
run: |
make ${{ matrix.which_test }}
- name: Compress log files for artifacts
if: always()
continue-on-error: true
run: |
tar -czf ${HOME}/sr3c_logs.tar.gz ${HOME}/.cache/sr3 ${HOME}/.config/sr3 *.log
- name: Save run artifacts
if: always()
uses: actions/upload-artifact@v3
continue-on-error: true
with:
name: sr3_${{ matrix.which_test }}_${{ matrix.osver }}_state_${{ github.sha }}
path: ~/sr3c_logs.tar.gz