c-api: turn const global into define (#150) #246
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: 'Windows builds' | |
on: | |
workflow_call: | |
inputs: | |
do_package: | |
required: false | |
type: boolean | |
default: false | |
do_package_symbols: | |
required: false | |
type: boolean | |
default: false | |
run_build: | |
required: true | |
type: boolean | |
push: | |
branches: [ 'main' ] | |
jobs: | |
build-win-x64: | |
runs-on: windows-2019 | |
if: (inputs.run_build == true) || (github.event_name == 'push') | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Setup host | |
run: | | |
choco install -y ninja | |
choco install -y doxygen.install | |
pip install breathe==4.34.0 | |
pip install sphinx==5.1.1 | |
pip install sphinx-rtd-theme==1.0.0 | |
shell: powershell | |
- name: Prepare build env on Windows | |
uses: ilammy/[email protected] | |
with: | |
arch: x64 | |
toolset: 14.1 | |
- uses: ./.github/actions/build-cmake-preset | |
with: | |
preset-name: vs141-x64-release | |
build-arch: x64 | |
artifact-label: ${{ github.job }} | |
build-win-x32: | |
runs-on: windows-2019 | |
if: inputs.run_build == true | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Setup host | |
run: | | |
choco install -y ninja | |
choco install -y doxygen.install | |
pip install breathe==4.34.0 | |
pip install sphinx==5.1.1 | |
pip install sphinx-rtd-theme==1.0.0 | |
shell: powershell | |
- name: Prepare build env on Windows | |
uses: ilammy/[email protected] | |
with: | |
arch: x86 | |
toolset: 14.1 | |
- uses: ./.github/actions/build-cmake-preset | |
with: | |
preset-name: vs141-x86-release | |
artifact-label: ${{ github.job }} |