-
Notifications
You must be signed in to change notification settings - Fork 78
55 lines (45 loc) · 1.28 KB
/
ubuntu.yaml
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
name: CI - Ubuntu
on:
push:
branches:
- "master"
tags:
- "v[0-9]+\\.[0-9]+\\.[0-9]+"
pull_request:
jobs:
ci:
name: Build
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true
- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
version: "6.8.0"
archives: icu qtbase qtsvg qttools
cache: true
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=RELEASE -DTEST=ON
- name: Build PokeFinder
run: cmake --build ${{github.workspace}}/build --config RELEASE
- name: Test PokeFinder
run: ctest --test-dir ${{github.workspace}}/build -V
- name: Package PokeFinder
run: |
mkdir upload
mv build/Source/PokeFinder .
tar czf PokeFinder-linux.tar.gz PokeFinder
mv PokeFinder upload
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: PokeFinder-linux
path: upload
- name: Publish Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: PokeFinder-linux.tar.gz