forked from CyberBoardPBEM/cbwindows
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (47 loc) · 1.77 KB
/
main.yml
File metadata and controls
53 lines (47 loc) · 1.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Check Cyberboard Commit
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
# This allows this workflow to be manually run from the repository's GitHub Actions feature
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build:
# The type of runner that the job will run on
runs-on: windows-2022
name: build ${{ matrix.arch }}-${{ matrix.config }}
strategy:
matrix:
arch: [ x64, x86 ]
config: [ Debug, Release ]
include:
- arch: x64
arch_vsdev: amd64
- arch: x86
arch_vsdev: x86
- config: Debug
cmake_build_type: Debug
- config: Release
cmake_build_type: RelWithDebInfo
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
with:
submodules: 'recursive'
# copied from wxWidgets/.../ci_cmake.yml
# required for CMake to find Ninja
- name: "[Windows] Set up MSVC Developer Command Prompt"
if: runner.os == 'Windows'
uses: wxWidgets/gha-setup-vsdevenv@wx
with:
arch: ${{ matrix.arch_vsdev }}
- name: CMake Configure and Build ${{ matrix.arch }}-${{ matrix.config }}
run: |
mkdir out\build\${{ matrix.arch }}-${{ matrix.config }}
cmake -G Ninja -B out\build\${{ matrix.arch }}-${{ matrix.config }} -DCMAKE_BUILD_TYPE=${{ matrix.cmake_build_type }}
cmake --build out\build\${{ matrix.arch }}-${{ matrix.config }}