Skip to content

bump version to 3.1.25 #296

bump version to 3.1.25

bump version to 3.1.25 #296

Workflow file for this run

name: Build
on: [push]
jobs:
build-windows:
name: Build Windows Qt${{ matrix.qt-major-version }}
strategy:
matrix:
qt-major-version: [6, 5]
include:
- qt-major-version: 6
qt-version: 6.7.2
clang-version: 18
zipfile: PotatoAlert.zip
- qt-major-version: 5
qt-version: 5.15.2
clang-version: 17 # until Qt 5.15.2 fixes qsizepolicy.h(137,38): error : invalid bitwise operation between different enumeration types ('Policy' and 'QSizePolicy::PolicyFlag')
zipfile: PotatoAlert_win7.zip
runs-on: windows-2022
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Visual Studio Shell
uses: egor-tensin/vs-shell@v2
with:
arch: x64
- name: Setup Ninja
uses: seanmiddleditch/gha-setup-ninja@v5
with:
version: 1.12.1
- name: Install Qt${{ matrix.qt-major-version }}
uses: jurplel/install-qt-action@v4
with:
version: ${{ matrix.qt-version }}
cache: true
- name: Install LLVM and Clang
uses: KyleMayes/install-llvm-action@v2
with:
version: ${{ matrix.clang-version }}
- name: CMake Version
run: cmake --version
- name: Clang Version
run: clang-cl --version
- name: Run CMake
env:
CC: "${{ env.LLVM_PATH }}\\bin\\clang-cl"
CXX: "${{ env.LLVM_PATH }}\\bin\\clang-cl"
run: cmake -S . -B build -G Ninja -DCMAKE_RC_COMPILER=RC -DCMAKE_BUILD_TYPE=Release -DPA_SUBMIT_URL=${{ secrets.PA_SUBMIT_URL }} -DPA_LOOKUP_URL=${{ secrets.PA_LOOKUP_URL }}
- name: Run Build
run: cmake --build build --config Release --target PotatoAlert PotatoUpdater CoreTest GameFileUnpackTest GameTest ReplayTest
- name: Run CTest
working-directory: ${{env.GITHUB_WORKSPACE}}/build
env:
CTEST_OUTPUT_ON_FAILURE: 1
run: ctest
- name: Create Release Archive
run: |
7z a -mx9 -r ${{ matrix.zipfile }} .\build\bin\*
- name: Create Installer
working-directory: ${{env.GITHUB_WORKSPACE}}/build
run: cpack
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.zipfile }}
path: ${{ matrix.zipfile }}
- name: Create Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
prerelease: true
files: |
${{ matrix.zipfile }}
build/PotatoAlert-*.msi
build-linux:
name: Build Linux Qt6
strategy:
matrix:
include:
- gcc-version: 14
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Ninja
run: sudo apt install -y ninja-build
- name: Ninja Version
run: ninja --version
- name: Install Dependencies
run: >
sudo apt install -y
libfontconfig1-dev
libfreetype6-dev
libx11-dev
libx11-xcb-dev
libxext-dev
libxfixes-dev
libxi-dev
libxrender-dev
libxcb1-dev
libxcb-cursor-dev
libxcb-glx0-dev
libxcb-keysyms1-dev
libxcb-image0-dev
libxcb-shm0-dev
libxcb-icccm4-dev
libxcb-sync-dev
libxcb-xfixes0-dev
libxcb-shape0-dev
libxcb-randr0-dev
libxcb-render-util0-dev
libxcb-util-dev
libxcb-xinerama0-dev
libxcb-xkb-dev
libxkbcommon-dev
libxkbcommon-x11-dev
- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
version: 6.7.2
cache: true
- name: CMake Version
run: cmake --version
- name: GCC Version
run: g++-${{ matrix.gcc-version }} --version
- name: Run CMake
env:
CC: gcc-${{ matrix.gcc-version }}
CXX: g++-${{ matrix.gcc-version }}
run: cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DPA_SUBMIT_URL=${{ secrets.PA_SUBMIT_URL }} -DPA_LOOKUP_URL=${{ secrets.PA_LOOKUP_URL }}
- name: Run Build
run: cmake --build build --config Release --target PotatoAlert CoreTest GameFileUnpackTest GameTest ReplayTest
- name: Run CTest
working-directory: build
env:
CTEST_OUTPUT_ON_FAILURE: 1
run: ctest
- name: Create Release Archive
run: |
7z a -mx9 -r PotatoAlert_linux.zip ./build/bin/*
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: PotatoAlert_linux.zip
path: PotatoAlert_linux.zip
- name: Create Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
prerelease: true
files: PotatoAlert_linux.zip