-
Notifications
You must be signed in to change notification settings - Fork 27
56 lines (51 loc) · 1.56 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
name: CI
on: [push, pull_request]
jobs:
build-and-test:
strategy:
fail-fast: false
matrix:
include:
- RELEASE: latest
ARCH: x86_64
- RELEASE: latest
ARCH: armhf
- RELEASE: latest
ARCH: aarch64
# special builds
- RELEASE: latest
ARCH: x86_64
BUILD_TYPE: coverage
- RELEASE: latest
ARCH: x86_64
BUILD_TYPE: shared-only
LIBAPPIMAGE_SHARED_ONLY: 1
name: ${{ matrix.BUILD_TYPE }} ${{ matrix.DIST }} ${{ matrix.ARCH }} shared-only=${{ matrix.LIBAPPIMAGE_SHARED_ONLY }}
runs-on: ubuntu-latest
env:
ARCH: ${{ matrix.ARCH }}
RELEASE: ${{ matrix.RELEASE }}
BUILD_TYPE: ${{ matrix.DIST }}
LIBAPPIMAGE_SHARED_ONLY: ${{ matrix.LIBAPPIMAGE_SHARED_ONLY }}
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Set up QEMU integration for Docker
run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
- name: Build libappimage and run tests
run: bash -ex ci/build-in-docker.sh
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
docs:
name: docs
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: sudo apt-get install -y doxygen
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Build API docs
run: cd docs/ && ./make.sh html