Test other installer #1515
Workflow file for this run
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
name: Build | |
concurrency: | |
group: build-${{ github.head_ref }} | |
cancel-in-progress: true | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
workflow_dispatch: | |
jobs: | |
# Build job for Ubuntu | |
# Build job for Windows | |
build-windows: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- name: WinServer2019 MinGW QT6 | |
image: windows-2019 | |
qt-version: "6.7" | |
shell: msys2 {0} | |
build-type: Debug | |
qt-arch: "win64_mingw" | |
experimental: false | |
name: ${{ matrix.name }} ${{ matrix.build-type }} | |
runs-on: ${{ matrix.image }} | |
continue-on-error: ${{ matrix.experimental }} | |
defaults: | |
run: | |
shell: ${{ matrix.shell }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Dependencies (msys2) | |
if: startsWith(matrix.shell, 'msys2') | |
uses: msys2/setup-msys2@v2 | |
with: | |
install: >- | |
mingw-w64-x86_64-toolchain | |
mingw-w64-x86_64-ninja | |
msystem: mingw64 | |
release: false | |
#mingw-w64-x86_64-SDL2 not installed above because of: https://github.com/AntiMicroX/antimicrox/issues/465 | |
- name: Install sdl2 (mingw-w64) | |
if: startsWith(matrix.shell, 'msys2') | |
run: | | |
curl -L -o mingw-w64-x86_64-SDL2-2.30.1-1-any.pkg.tar.zst https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-SDL2-2.30.1-1-any.pkg.tar.zst | |
pacman --noconfirm -U mingw-w64-x86_64-SDL2-2.30.1-1-any.pkg.tar.zst | |
- name: Install sdl2 (msvc) | |
if: startsWith(matrix.shell, 'cmd') | |
run: | | |
curl -L -o SDL2-devel-2.30.1-VC.zip https://github.com/libsdl-org/SDL/releases/download/release-2.30.1/SDL2-devel-2.30.1-VC.zip | |
unzip SDL2-devel-2.30.1-VC.zip | |
mv "${{ github.workspace }}/SDL2-2.30.1" "${{ github.workspace }}/sdl2" | |
mklink /J "${{ github.workspace }}\sdl2\SDL2" "${{ github.workspace }}\sdl2\include" | |
- name: Install MSVC | |
if: startsWith(matrix.shell, 'cmd') | |
uses: TheMrMilchmann/setup-msvc-dev@v2 | |
with: | |
arch: x64 | |
toolset: 14.1 | |
- name: Install Qt | |
run: | | |
curl -L -o qt-installer.exe https://ftp.icm.edu.pl/packages/qt/archive/online_installers/4.8/qt-online-installer-windows-x64-4.8.0.exe | |
ls | |
./qt-installer.exe --help | |
./qt-installer.exe --verbose --root D:/a/antimicrox/antimicrox/qt/Qt --accept-licenses --default-answer --confirm-command install qt.qt6.670.mingw_64 | |
- name: Configure CMake | |
run: cmake -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} -B "${{ github.workspace }}/build" ${{ matrix.cmake-args }} | |
env: | |
CMAKE_PREFIX_PATH: ${{ env.Qt5_Dir }} | |
WORKSPACE_DIR: ${{ github.workspace }} | |
- name: Build | |
run: cmake --build "${{ github.workspace }}/build" --parallel 8 |