-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: Enable Qt5 + lightpreview (#406)
* chore(CI): refine current 'cmake.yml' file content * chore(CI): enable Qt5 on Linux and macOS * Appveyor.yml: remove deploy step we are deploying from GitHub Actions now * build-linux-64.sh: adjust .zip wildcard to hopefully not break on PR builds * build-linux-64.sh: remove fragile unzip/readelf lines * lightpreview\CMakeLists.txt: only install Qt on Win/Mac * lightpreview: attempt to fix mac Qt packaging * lightpreview: apple fixes * Install qtdbus on macOS * try alternate dbus module name * try cmake find_package for dbus * also find Qt5PrintSupport * build-osx.sh: remove coreutils install we don't use sha256sum anymore * lightpreview/CMakeLists.txt: create .app bundle on macOS * Update CMakeLists.txt * build-*: run cpack as part of the build command on my macOS test system, running cpack separately is doubling the build time * cmake: factor out add_loader_path_to_rpath function, apply to all targets * chore(CI): add steps to re-pack the 'doc' and 'bin' directories * chore(CI): remove GitHub release-related step (to be re-introduced) * chore(CI): adjust inflating destination directories --------- Co-authored-by: Eric Wasylishen <ewasylishen@gmail.com>
- Loading branch information
1 parent
126931a
commit 39074b8
Showing
15 changed files
with
184 additions
and
142 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
name: Continuous Building | ||
|
||
on: | ||
- push | ||
- pull_request | ||
|
||
jobs: | ||
build-and-upload: | ||
name: Build & upload the artifact | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- ubuntu-22.04 | ||
- macos-12 | ||
- windows-2022 | ||
use-asan: | ||
- YES | ||
- NO | ||
exclude: | ||
- os: windows-2022 | ||
use-asan: YES | ||
env: | ||
USE_ASAN: ${{ matrix.use-asan }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- name: 'Linux: Install Qt5' | ||
if: startsWith(matrix.os, 'ubuntu-') | ||
run: | | ||
sudo apt update | ||
sudo apt install qtbase5-dev libqt5svg5-dev | ||
- name: 'Linux: Build the artifact' | ||
if: startsWith(matrix.os, 'ubuntu-') | ||
run: ./build-linux-64.sh | ||
- name: 'Linux: Prepare the artifact' | ||
if: ${{ startsWith(matrix.os, 'ubuntu-') }} | ||
run: | | ||
unzip build-linux/*-Linux.zip | ||
mv ericw-tools-*/*-Linux/ ericw-tools-linux | ||
- name: 'Linux: Upload the artifact' | ||
if: ${{ startsWith(matrix.os, 'ubuntu-') && matrix.use-asan == 'NO' }} | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
path: ericw-tools-linux/ | ||
name: ericw-tools-${{ github.sha }}-linux | ||
if-no-files-found: error | ||
|
||
- name: 'macOS: Install Qt5' | ||
if: ${{ startsWith(matrix.os, 'macos-') }} | ||
uses: jurplel/install-qt-action@v3 | ||
with: | ||
version: 5.15.2 | ||
- name: 'macOS: Build the artifact' | ||
if: startsWith(matrix.os, 'macos-') | ||
run: ./build-osx.sh | ||
- name: 'macOS: Prepare the artifact' | ||
if: ${{ startsWith(matrix.os, 'macos-') }} | ||
run: | | ||
unzip build-osx/*-Darwin.zip | ||
mv ericw-tools-*/*-Darwin/ ericw-tools-macos | ||
- name: 'macOS: Upload the artifact' | ||
if: ${{ startsWith(matrix.os, 'macos-') && matrix.use-asan == 'NO' }} | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
path: ericw-tools-macos/ | ||
name: ericw-tools-${{ github.sha }}-macos | ||
if-no-files-found: error | ||
|
||
- name: 'Windows: Setup MSVC environment' | ||
if: startsWith(matrix.os, 'windows-') | ||
uses: ilammy/msvc-dev-cmd@v1 | ||
- name: 'Windows: Install Qt5' | ||
if: ${{ startsWith(matrix.os, 'windows-') }} | ||
uses: jurplel/install-qt-action@v3 | ||
with: | ||
version: 5.15.2 | ||
arch: win64_msvc2019_64 | ||
- name: 'Windows: Build the artifact' | ||
if: startsWith(matrix.os, 'windows-') | ||
run: .\build-windows.ps1 | ||
- name: 'Windows: Prepare the artifact' | ||
if: ${{ startsWith(matrix.os, 'windows-') }} | ||
run: | | ||
7z x build-windows\*-win64.zip -o"ericw-tools-windows-temp\" -y | ||
New-Item -ItemType Directory -Path ericw-tools-windows | ||
Get-ChildItem -Path ericw-tools-windows-temp\ericw-tools-*\*-win64 -Recurse | | ||
Move-Item -Destination ericw-tools-windows | ||
shell: pwsh | ||
- name: 'Windows: Upload the artifact' | ||
if: ${{ startsWith(matrix.os, 'windows-') && matrix.use-asan == 'NO' }} | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
path: ericw-tools-windows/ | ||
name: ericw-tools-${{ github.sha }}-windows | ||
if-no-files-found: error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.