forked from Tulip-Dev/tulip
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gha/mingw64: Add job to build Talipot with Clang compiler
- Loading branch information
Showing
1 changed file
with
39 additions
and
23 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -2,11 +2,22 @@ name: windows-mingw64-build | |
on: [push, pull_request] | ||
jobs: | ||
mingw64: | ||
name: Talipot build on Windows (mingw64) | ||
name: ${{ matrix.config.name }} | ||
runs-on: windows-latest | ||
defaults: | ||
run: | ||
shell: msys2 {0} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
config: | ||
- name: Talipot build on Windows (mingw64 GCC) | ||
msystem: MINGW64 | ||
arch: x86_64 | ||
|
||
- name: Talipot build on Windows (mingw64 Clang) | ||
msystem: CLANG64 | ||
arch: clang-x86_64 | ||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
|
@@ -17,29 +28,34 @@ jobs: | |
- name: Install mingw64 and Talipot build dependencies | ||
uses: msys2/setup-msys2@v2 | ||
with: | ||
msystem: MINGW64 | ||
msystem: ${{ matrix.config.msystem }} | ||
update: true | ||
install: git | ||
base-devel | ||
mingw-w64-x86_64-toolchain | ||
mingw-w64-x86_64-cmake | ||
mingw-w64-x86_64-ccache | ||
mingw-w64-x86_64-yajl | ||
mingw-w64-x86_64-zstd | ||
mingw-w64-x86_64-qhull | ||
mingw-w64-x86_64-graphviz | ||
mingw-w64-x86_64-libgit2 | ||
mingw-w64-x86_64-python | ||
mingw-w64-x86_64-cppunit | ||
mingw-w64-x86_64-fontconfig | ||
mingw-w64-x86_64-freetype | ||
mingw-w64-x86_64-fribidi | ||
mingw-w64-x86_64-glew | ||
mingw-w64-x86_64-qt5 | ||
mingw-w64-x86_64-quazip | ||
mingw-w64-x86_64-qtwebkit | ||
mingw-w64-x86_64-python-sphinx | ||
mingw-w64-x86_64-sip | ||
mingw-w64-${{ matrix.config.arch }}-toolchain | ||
mingw-w64-${{ matrix.config.arch }}-openmp | ||
mingw-w64-${{ matrix.config.arch }}-cmake | ||
mingw-w64-${{ matrix.config.arch }}-ccache | ||
mingw-w64-${{ matrix.config.arch }}-yajl | ||
mingw-w64-${{ matrix.config.arch }}-zstd | ||
mingw-w64-${{ matrix.config.arch }}-qhull | ||
mingw-w64-${{ matrix.config.arch }}-graphviz | ||
mingw-w64-${{ matrix.config.arch }}-libgit2 | ||
mingw-w64-${{ matrix.config.arch }}-python | ||
mingw-w64-${{ matrix.config.arch }}-cppunit | ||
mingw-w64-${{ matrix.config.arch }}-fontconfig | ||
mingw-w64-${{ matrix.config.arch }}-freetype | ||
mingw-w64-${{ matrix.config.arch }}-fribidi | ||
mingw-w64-${{ matrix.config.arch }}-glew | ||
mingw-w64-${{ matrix.config.arch }}-qt5 | ||
mingw-w64-${{ matrix.config.arch }}-quazip | ||
mingw-w64-${{ matrix.config.arch }}-qtwebkit | ||
mingw-w64-${{ matrix.config.arch }}-python-sphinx | ||
mingw-w64-${{ matrix.config.arch }}-sip | ||
- if: matrix.config.msystem == 'CLANG64' | ||
name: Patch CMake GetPrerequisites module until 3.29.0 release is out | ||
run: sed -i 's/\\t\*DLL Name/\[\\t \]\*DLL Name/' | ||
/clang64/share/cmake/Modules/GetPrerequisites.cmake | ||
- name: Prepare ccache timestamp | ||
id: get-current-date | ||
run: | | ||
|
@@ -53,9 +69,9 @@ jobs: | |
uses: actions/cache@v4 | ||
with: | ||
path: ${{ steps.get-cccache-dir.outputs.ccache-dir }} | ||
key: windows-mingw64-build-ccache-${{ steps.get-current-date.outputs.date }} | ||
key: windows-${{ matrix.config.arch }}-build-ccache-${{ steps.get-current-date.outputs.date }} | ||
restore-keys: | | ||
windows-mingw64-build-ccache | ||
windows-${{ matrix.config.arch }}-build-ccache | ||
save-always: true | ||
- name: Create build directory | ||
run: mkdir build | ||
|