-
-
Notifications
You must be signed in to change notification settings - Fork 268
66 lines (53 loc) · 1.66 KB
/
Copy pathbuild-appimage.yaml
File metadata and controls
66 lines (53 loc) · 1.66 KB
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
name: Build AppImage
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ${{ matrix.target.runner }}
container: registry.depot.dev/dwd5s9sq7d:${{ matrix.target.tag }}
strategy:
fail-fast: false
matrix:
target:
- arch: amd64
runner: depot-ubuntu-24.04-16
tag: appimage-amd64-latest
- arch: arm64
runner: depot-ubuntu-24.04-arm-16
tag: appimage-arm64-latest
name: Build AppImage (${{ matrix.target.arch }})
env:
INSTALL_DIR: ${{ github.workspace }}/install
APPIMAGE_EXTRACT_AND_RUN: "1"
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
key: appimage-${{ matrix.target.arch }}
max-size: 0
- name: Configure CMake
run: |
TAG=$(grep "tag:" manifest.yaml | cut -d'"' -f2)
COMMIT=$(grep "short_rev:" manifest.yaml | cut -d'"' -f2)
cmake -S . -B build -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX="${INSTALL_DIR}" \
-DVICINAE_GIT_TAG="$TAG" \
-DVICINAE_GIT_COMMIT_HASH="$COMMIT"
- name: Build
run: cmake --build build --parallel $(nproc)
- name: Install
run: cmake --install build
- name: Make AppImage
run: |
chmod +x ./scripts/mkappimage.sh
./scripts/mkappimage.sh "${INSTALL_DIR}" AppDir