forked from openscad/openscad
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (51 loc) · 1.42 KB
/
linux.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
name: linux
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-20.04, ubuntu-22.04 ]
include:
- os: ubuntu-20.04
distro: focal
qt5default: true
- os: ubuntu-22.04
distro: kinetic
qt5default: false
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Install dependencies
run: ./scripts/github-ci-linux-get-dependencies.sh ${{ matrix.distro }}
- name: Dependency fixup
run: sudo apt-get install gettext gcovr
- name: Make Qt5 the default
if: ${{ matrix.qt5default }}
run: sudo apt-get install qt5-default
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Build and test
run: ./scripts/github-ci.sh enable_python build test coverage
- name: Upload Test Result Report
uses: actions/upload-artifact@v3
if: ${{ always() }}
with:
name: Test Result Report (${{ matrix.os }})
path: |
b/Testing/Temporary/*_report.html
b/Testing/Temporary/LastTest.log
- name: Upload Code Coverage Report
uses: actions/upload-artifact@v3
with:
name: Code Coverage Report (${{ matrix.os }})
path: c/coverage*.html