-
-
Notifications
You must be signed in to change notification settings - Fork 19
99 lines (86 loc) · 2.38 KB
/
cd.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
95
96
97
98
99
name: Continuous Deployment
on:
push:
branches: [main]
jobs:
report:
name: Deploy
runs-on: ubuntu-latest
container:
image: ghcr.io/${{ github.repository }}:${{ github.ref_name}}
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Test
id: test
uses: andyholmes/actuary@main
with:
suite: test
setup-args: |
-Ddocumentation=true
-Dtests=true
test-coverage: true
lcov-include: '${{ github.workspace }}/src/*'
- name: Coverage Report
continue-on-error: true
uses: JamesIves/github-pages-deploy-action@releases/v4
with:
folder: ${{ steps.test.outputs.coverage-html }}
target-folder: coverage
single-commit: true
- name: Documentation
continue-on-error: true
uses: JamesIves/github-pages-deploy-action@releases/v4
with:
folder: _build/doc/sdk/valent
target-folder: documentation
single-commit: true
flatpak:
name: Flatpak
runs-on: ubuntu-latest
container:
image: ghcr.io/andyholmes/flatter/gnome:47
options: --privileged
permissions:
contents: write
strategy:
max-parallel: 1
matrix:
arch: [x86_64, aarch64]
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Setup QEMU
if: ${{ matrix.arch == 'aarch64' }}
id: qemu
uses: docker/setup-qemu-action@v3
with:
platforms: arm64
- name: Setup GPG
id: gpg
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
- name: Build
id: build
uses: andyholmes/flatter@main
with:
files: |
build-aux/flatpak/ca.andyholmes.Valent.json
arch: ${{ matrix.arch }}
gpg-sign: ${{ steps.gpg.outputs.fingerprint }}
upload-bundles: true
- name: Deploy
uses: JamesIves/github-pages-deploy-action@releases/v4
with:
folder: ${{ steps.build.outputs.repository }}
target-folder: repo
single-commit: true