Merge pull request #39 from GRAPHISOFT/ATEC-9902 #104
Workflow file for this run
This file contains hidden or 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: Build | |
on: | |
push: | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
build: | |
runs-on: ${{ matrix.os-type }} | |
strategy: | |
matrix: | |
os-type: [ windows-2022, macos-13 ] | |
ac-version: [ 25, 26, 27 ] | |
steps: | |
- name: Checkout the submodule | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.8 | |
- name: Set version number | |
shell: bash | |
run: | | |
if jq -e '.version != "changeme"' config.json; then | |
echo 'The ".version" field of "config.json" must be the invalid placeholder "changeme"' >&2 | |
exit 1 | |
fi | |
jq '.version = "1"' config.json > config.json.new | |
rm config.json | |
mv config.json.new config.json | |
- name: Setup Xcode | |
if: runner.os == 'macOS' | |
run: sudo xcode-select -s /Applications/Xcode_14.2.app | |
- name: Run build script | |
run: | | |
python Tools/BuildAddOn.py --configFile config.json --acVersion ${{ matrix.ac-version }} --buildConfig Debug RelWithDebInfo |