forked from stachenov/quazip
-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (66 loc) · 1.89 KB
/
ci.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
on:
push:
branches:
- master
pull_request:
name: CI
jobs:
ubuntu:
name: "cmake on ${{ matrix.runner }}"
runs-on: "ubuntu-20.04"
container:
image: "${{ matrix.runner }}"
strategy:
matrix:
runner:
- "ubuntu:20.04" # cmake 3.16, qt 5.12
- "ubuntu:20.10" # cmake 3.16, qt 5.14
env:
DEBIAN_FRONTEND: noninteractive
steps:
- name: Show OS info
run: cat /etc/os-release
- uses: actions/checkout@v2
- name: Install qt and build tools
run: |
apt-get update &&
apt-get install -y --no-install-recommends \
g++ make cmake zlib1g-dev qt5-default qttools5-dev-tools
- name: Show cmake version
run: cmake --version
- name: Run cmake
run: cmake -S . -B build -DQUAZIP_ENABLE_TESTS=ON
- name: Build quazip
run: cd build && VERBOSE=1 make -j8
- name: Build tests
run: cd build/qztest && VERBOSE=1 make -j8
- name: Run tests
run: build/qztest/qztest
alpine:
name: "cmake on ${{ matrix.runner }}"
runs-on: "ubuntu-20.04"
container:
image: "${{ matrix.runner }}"
strategy:
matrix:
runner:
- "alpine:3.11" # cmake 3.15, qt 5.12
- "alpine:3.12" # cmake 3.17, qt 5.14
env:
DEBIAN_FRONTEND: noninteractive
steps:
- name: Show OS info
run: cat /etc/os-release
- uses: actions/checkout@v2
- name: Install qt and build tools
run: apk add --update g++ make cmake qt5-qtbase-dev
- name: Show cmake version
run: cmake --version
- name: Run cmake
run: cmake -S . -B build -DQUAZIP_ENABLE_TESTS=ON
- name: Build quazip
run: cd build && VERBOSE=1 make -j8
- name: Build tests
run: cd build/qztest && VERBOSE=1 make -j8
- name: Run tests
run: build/qztest/qztest