Skip to content

Commit

Permalink
gha/mingw64: Add job to build Talipot with Clang compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
anlambert committed Mar 18, 2024
1 parent 86ca693 commit 82df009
Showing 1 changed file with 39 additions and 23 deletions.
62 changes: 39 additions & 23 deletions .github/workflows/windows-mingw64-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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: |
Expand All @@ -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
Expand Down

0 comments on commit 82df009

Please sign in to comment.