mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2025-12-16 12:08:49 +00:00
ci: Split AppImage build into two, with and without Wayland support
This commit is contained in:
parent
356aa3d3ae
commit
05562046ac
@ -1,14 +1,16 @@
|
|||||||
#!/bin/bash -ex
|
#!/bin/bash -ex
|
||||||
|
|
||||||
if [ "$TARGET" = "appimage" ]; then
|
if [[ "$TARGET" == "appimage"* ]]; then
|
||||||
# Compile the AppImage we distribute with Clang.
|
# Compile the AppImage we distribute with Clang.
|
||||||
export EXTRA_CMAKE_FLAGS=(-DCMAKE_CXX_COMPILER=clang++
|
export EXTRA_CMAKE_FLAGS=(-DCMAKE_CXX_COMPILER=clang++
|
||||||
-DCMAKE_C_COMPILER=clang
|
-DCMAKE_C_COMPILER=clang
|
||||||
-DCMAKE_LINKER=/etc/bin/ld.lld
|
-DCMAKE_LINKER=/etc/bin/ld.lld
|
||||||
-DENABLE_ROOM_STANDALONE=OFF)
|
-DENABLE_ROOM_STANDALONE=OFF)
|
||||||
|
if [ "$TARGET" = "appimage-wayland" ]; then
|
||||||
# Bundle required QT wayland libraries
|
# Bundle required QT wayland libraries
|
||||||
export EXTRA_QT_PLUGINS="waylandcompositor"
|
export EXTRA_QT_PLUGINS="waylandcompositor"
|
||||||
export EXTRA_PLATFORM_PLUGINS="libqwayland-egl.so;libqwayland-generic.so"
|
export EXTRA_PLATFORM_PLUGINS="libqwayland-egl.so;libqwayland-generic.so"
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
# For the linux-fresh verification target, verify compilation without PCH as well.
|
# For the linux-fresh verification target, verify compilation without PCH as well.
|
||||||
export EXTRA_CMAKE_FLAGS=(-DCITRA_USE_PRECOMPILED_HEADERS=OFF)
|
export EXTRA_CMAKE_FLAGS=(-DCITRA_USE_PRECOMPILED_HEADERS=OFF)
|
||||||
@ -30,7 +32,7 @@ cmake .. -G Ninja \
|
|||||||
ninja
|
ninja
|
||||||
strip -s bin/Release/*
|
strip -s bin/Release/*
|
||||||
|
|
||||||
if [ "$TARGET" = "appimage" ]; then
|
if [[ "$TARGET" == "appimage"* ]]; then
|
||||||
ninja bundle
|
ninja bundle
|
||||||
# TODO: Our AppImage environment currently uses an older ccache version without the verbose flag.
|
# TODO: Our AppImage environment currently uses an older ccache version without the verbose flag.
|
||||||
ccache -s
|
ccache -s
|
||||||
|
|||||||
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
@ -28,7 +28,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
target: ["appimage", "fresh"]
|
target: ["appimage", "appimage-wayland", "fresh"]
|
||||||
container:
|
container:
|
||||||
image: opensauce04/azahar-build-environment:latest
|
image: opensauce04/azahar-build-environment:latest
|
||||||
options: -u 1001
|
options: -u 1001
|
||||||
@ -52,12 +52,16 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
run: ./.ci/linux.sh
|
run: ./.ci/linux.sh
|
||||||
- name: Move AppImage to artifacts directory
|
- name: Move AppImage to artifacts directory
|
||||||
if: ${{ matrix.target == 'appimage' }}
|
if: ${{ contains(matrix.target, 'appimage') }}
|
||||||
run: |
|
run: |
|
||||||
mkdir -p artifacts
|
mkdir -p artifacts
|
||||||
mv build/bundle/*.AppImage artifacts/
|
mv build/bundle/*.AppImage artifacts/
|
||||||
|
- name: Rename AppImage
|
||||||
|
if: ${{ matrix.target == 'appimage-wayland' }}
|
||||||
|
run: |
|
||||||
|
mv artifacts/azahar.AppImage artifacts/azahar-wayland.AppImage
|
||||||
- name: Upload
|
- name: Upload
|
||||||
if: ${{ matrix.target == 'appimage' }}
|
if: ${{ contains(matrix.target, 'appimage') }}
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ env.OS }}-${{ env.TARGET }}
|
name: ${{ env.OS }}-${{ env.TARGET }}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user