-
Notifications
You must be signed in to change notification settings - Fork 380
94 lines (94 loc) · 2.98 KB
/
main.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
name: CI
on:
[push, pull_request, workflow_dispatch]
jobs:
build-test:
runs-on: ubuntu-latest
if: "!contains(github.ref, 'coverity_scan')"
strategy:
matrix:
docker_image: [ubuntu-20.04, fedora-30, opensuse-leap, fedora-32, ubuntu-22.04]
compiler: [gcc, clang]
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: fix-sanitizer
run: sudo sysctl vm.mmap_rnd_bits=28
- name: Launch Action
uses:
tpm2-software/ci/runCI@main
with:
PROJECT_NAME: ${{ github.event.repository.name }}
DOCKER_IMAGE: ${{ matrix.docker_image }}
CC: ${{ matrix.compiler }}
- name: failure
if: ${{ failure() }}
run: cat build/test-suite.log || true
master-tss-build-test:
runs-on: ubuntu-latest
if: "!contains(github.ref, 'coverity_scan')"
strategy:
matrix:
compiler: [gcc, clang]
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: fix-sanitizer
run: sudo sysctl vm.mmap_rnd_bits=28
- name: Launch Action
uses:
tpm2-software/ci/runCI@main
with:
PROJECT_NAME: ${{ github.event.repository.name }}
DOCKER_IMAGE: ubuntu-20.04
CC: ${{ matrix.compiler }}
TPM2_TSS_VERSION: master
GIT_FULL_CLONE: true
- name: failure
if: ${{ failure() }}
run: cat build/test-suite.log || true
coverage-test:
runs-on: ubuntu-latest
if: "!contains(github.ref, 'coverity_scan')"
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: fix-sanitizer
run: sudo sysctl vm.mmap_rnd_bits=28
- name: Launch Action
uses:
tpm2-software/ci/runCI@main
with:
PROJECT_NAME: ${{ github.event.repository.name }}
ENABLE_COVERAGE: true
DOCKER_IMAGE: ubuntu-20.04
CC: gcc
- name: failure cat build logs
if: ${{ failure() }}
run: cat build/test-suite.log || true
- name: failure cat compatibility_testbuild logs
if: ${{ failure() }}
run: cat compatibility_testbuild/test-suite.log || true
coverity-test:
runs-on: ubuntu-latest
if: contains(github.ref, 'coverity_scan')
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: fix-sanitizer
run: sudo sysctl vm.mmap_rnd_bits=28
- name: Launch Coverity Action
uses:
tpm2-software/ci/coverityScan@main
with:
PROJECT_NAME: ${{ github.event.repository.name }}
REPO_BRANCH: ${{ github.ref }}
REPO_NAME: ${{ github.repository }}
ENABLE_COVERITY: true
DOCKER_IMAGE: ubuntu-20.04
CC: gcc
COVERITY_SCAN_TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
COVERITY_SUBMISSION_EMAIL: [email protected]
- name: failure
if: ${{ failure() }}
run: cat build/test-suite.log || true