mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 21:10:04 +00:00
Initial CI workflow
This commit is contained in:
parent
2b8073d9d6
commit
4309fbf2f2
1 changed files with 71 additions and 0 deletions
71
.github/workflows/ci.yml
vendored
Normal file
71
.github/workflows/ci.yml
vendored
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
name: CI
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- 'master'
|
||||
- 'develop'
|
||||
- 'feature/**'
|
||||
pull_request:
|
||||
branches:
|
||||
- 'master'
|
||||
- 'develop'
|
||||
|
||||
concurrency:
|
||||
# Cancel in-progress jobs for the same pull request
|
||||
group: ${{ github.head_ref || github.run_id }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
matrix:
|
||||
include:
|
||||
- name: win64_msvc2022
|
||||
os: windows-2022
|
||||
build_type: Release
|
||||
compiler: msvc
|
||||
msvc_arch: x64
|
||||
msvc_toolset: 14.34
|
||||
msvc_version: 2022
|
||||
qt_version: 6.4.2
|
||||
qt_arch: win64_msvc2019_64
|
||||
qt_tools: ''
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
path: scwx
|
||||
submodules: recursive
|
||||
|
||||
- name: Install Qt
|
||||
uses: jurplel/install-qt-action@v3
|
||||
with:
|
||||
version: ${{ matrix.qt_version }}
|
||||
arch: ${{ matrix.qt_arch }}
|
||||
tools: ${{ matrix.qt_tools }}
|
||||
|
||||
- name: Setup MSVC
|
||||
if: matrix.compiler == 'msvc'
|
||||
uses: ilammy/msvc-dev-cmd@v1
|
||||
with:
|
||||
arch: ${{ matrix.msvc_arch }}
|
||||
toolset: ${{ matrix.msvc_toolset }}
|
||||
vsversion: ${{ matrix.msvc_version }}
|
||||
|
||||
- name: Build Supercell Wx
|
||||
run: |
|
||||
mkdir build
|
||||
cd build
|
||||
cmake ../scwx/ \
|
||||
-G Ninja \
|
||||
-DCMAKE_BUILD_TYPE="${{ matrix.build_type }}" \
|
||||
-DCMAKE_INSTALL_PREFIX="../install"
|
||||
ninja supercell-wx wxtest
|
||||
|
||||
- name: Test Supercell Wx
|
||||
working-directory: ${{ github.workspace }}/build
|
||||
run: ctest -C ${{ matrix.build_type }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue