Skip to content
This repository was archived by the owner on May 4, 2025. It is now read-only.

Commit 5b838a0

Browse files
committed
add automatic builds
1 parent 7b4fd52 commit 5b838a0

File tree

2 files changed

+69
-0
lines changed

2 files changed

+69
-0
lines changed

.github/workflows/build.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
on:
2+
push:
3+
pull_request:
4+
5+
name: Build
6+
7+
jobs:
8+
windows:
9+
name: 'Windows'
10+
runs-on: windows-2019
11+
steps:
12+
- name: Install Qt 6
13+
uses: jurplel/install-qt-action@v4
14+
with:
15+
version: '6.7.2'
16+
host: windows
17+
18+
- uses: lukka/get-cmake@latest
19+
20+
- uses: actions/checkout@v4
21+
with:
22+
submodules: recursive
23+
24+
- name: Setup vcpkg
25+
uses: lukka/run-vcpkg@v11
26+
id: runvcpkg
27+
with:
28+
# This specifies the location of vcpkg, where it is going to be restored from cache, or create from scratch.
29+
vcpkgDirectory: '${{ runner.workspace }}/b/vcpkg'
30+
# The Git commit id of vcpkg to be checked out. This is only needed because we are not using a submodule.
31+
vcpkgGitCommitId: 'a42af01b72c28a8e1d7b48107b33e4f286a55ef6'
32+
# The vcpkg.json file, which will be part of cache key computation.
33+
vcpkgJsonGlob: '**vcpkg.json'
34+
35+
- name: Run CMake consuming CMakePreset.json and run vcpkg to build packages
36+
uses: lukka/run-cmake@v10
37+
with:
38+
configurePreset: 'ninja-multi-vcpkg'
39+
configurePresetAdditionalArgs: "['-DCMAKE_BUILD_TYPE=Release', '-DVCPKG_TARGET_TRIPLET=x64-windows-static']"
40+
buildPreset: 'ninja-multi-vcpkg'
41+
buildPresetAdditionalArgs: "['--config Release']"
42+
43+
- name: Copy Qt DLLs to the release dir
44+
run: |
45+
windeployqt6 D:\a\eidolist\eidolist\builds\ninja-multi-vcpkg\Release\eidolist.exe --release --no-svg --no-network --no-translations --no-opengl-sw --no-system-d3d-compiler
46+
47+
- name: Push build artifacts
48+
uses: actions/upload-artifact@v4
49+
with:
50+
name: eidolist-windows-x86_64
51+
path: |
52+
D:/a/eidolist/eidolist/builds/ninja-multi-vcpkg/Release
53+
54+
flatpak:
55+
name: 'Linux/Flatpak'
56+
runs-on: ubuntu-latest
57+
container:
58+
image: bilelmoussaoui/flatpak-github-actions:kde-6.7
59+
options: --privileged
60+
steps:
61+
- uses: actions/checkout@v4
62+
with:
63+
submodules: recursive
64+
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6
65+
with:
66+
bundle: eidolist-linux.flatpak
67+
manifest-path: linux/com.github.lumiscosity.Mossball.yml
68+
cache-key: flatpak-builder-${{ github.sha }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,4 @@ CMakeLists.txt.user*
7373
*.exe
7474

7575
/build
76+
/builds

0 commit comments

Comments
 (0)