x #15
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: Qt5 CI | |
on: | |
push: | |
branches: [ "use_qt5" ] | |
pull_request: | |
branches: [ "use_qt5" ] | |
jobs: | |
build: | |
runs-on: self-hosted | |
strategy: | |
matrix: | |
platform: [windows-latest] | |
env: | |
ROOT_DIR: ${{ github.workspace }} | |
CONFIG: Release | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install boost | |
uses: MarkusJx/[email protected] | |
id: install-boost | |
with: | |
boost_version: 1.81.0 | |
platform_version: 2019 | |
toolset: msvc | |
- name: Install Qt5 | |
uses: jurplel/install-qt-action@v3 | |
id: install-qt | |
with: | |
aqtversion: '==3.1.*' | |
version: '5.15.2' | |
host: 'windows' | |
target: 'desktop' | |
arch: 'win32_msvc2019' | |
tools: 'tools_cmake' | |
#archives: 'qtxmlpatterns qttranslation qtbase' | |
- name: Init variables | |
shell: cmd | |
run: | | |
echo set "IPPONBOARD_ROOT_DIR=${{ env.ROOT_DIR }}" > ${{ env.ENV_CFG }} | |
echo set "QTDIR=${{ env.Qt5_DIR }}" >> ${{ env.ENV_CFG }} | |
echo set "BOOST_DIR=${{ env.BOOST_DIR }} >> ${{ env.ENV_CFG }} | |
env: | |
ENV_CFG: ${{ github.workspace }}/env_cfg.bat | |
BOOST_DIR: ${{ steps.install-boost.outputs.BOOST_ROOT }} | |
- name: Create version info | |
shell: cmd | |
run: scripts/create-versioninfo.cmd ${{ env.ROOT_DIR }}/base | |
- name: Create makefile | |
shell: cmd | |
run: cmake -S "${{ env.ROOT_DIR }}" -B "_build/Ipponboard" -DCMAKE_BUILD_TYPE=${{env.CONFIG}} | |
- name: Build Tests | |
shell: cmd | |
run: cmake --build "_build/Ipponboard" --config ${{env.CONFIG}} --target IpponboardTest | |
- name: Run tests | |
shell: cmd | |
continue-on-error: true | |
run: | | |
cd ./_bin/Test-${{env.CONFIG}} | |
./IpponboardTest.exe | |
- name: Build Ipponboard | |
shell: cmd | |
run: cmake --build "_build/Ipponboard" --config ${{env.CONFIG}} --target Ipponboard | |