Skip to content

Merge pull request #161 from thelivingdiamond/release/1.3.3 #808

Merge pull request #161 from thelivingdiamond/release/1.3.3

Merge pull request #161 from thelivingdiamond/release/1.3.3 #808

Workflow file for this run

name: build-and-test
on:
push:
pull_request:
workflow_dispatch:
# Run GitHub Actions monthly to make sure CI isn't broken
schedule:
- cron: '0 0 1 * *'
jobs:
build:
strategy:
matrix:
buildType: [DebugChair, Release]
runs-on: windows-latest
env:
VCPKG_ROOT: '${{github.workspace}}/vcpkg'
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/[email protected]
with:
python-version: 3.11
- name: Disk Usage - Initial
if: always()
run: |
python ./Scripts/print_disk_usage.py
- name: Restore artifacts, or setup vcpkg for building artifacts
uses: lukka/run-vcpkg@v11
id: runvcpkg
with:
vcpkgJsonGlob: 'vcpkg.json'
vcpkgDirectory: '${{env.VCPKG_ROOT}}'
vcpkgGitCommitId: 'f7423ee180c4b7f40d43402c2feb3859161ef625'
runVcpkgInstall: false
- name: Disk Usage - Pre-build
if: always()
run: |
python ./Scripts/print_disk_usage.py
- name: Run CMake+vcpkg+Ninja+CTest to generate/build/test.
uses: lukka/run-cmake@v10
id: runcmake
with:
configurePreset: 'ninja-vcpkg'
buildPreset: 'ninja-vcpkg'
buildPresetAdditionalArgs: "[`--config`, `${{matrix.buildType}}`]"
testPreset: 'ninja-vcpkg'
testPresetAdditionalArgs: "[`--build-config`, `${{matrix.buildType}}`]"
env:
VCPKG_FORCE_SYSTEM_BINARIES: 1
- name: Disk Usage - Post-build
if: always()
run: |
python ./Scripts/print_disk_usage.py
- name: Remove object files
shell: cmd
run: |
cd _build/ninja-vcpkg
del /s /q *.obj
del /s /q *.pch
del /s /q *.ilk
- name: Disk Usage - Post-clean
if: always()
run: |
python ./Scripts/print_disk_usage.py
- name: Archive dist files
id: createDist
run: |
python ./Scripts/make_package.py --repo-path=. --build-path=_build/ninja-vcpkg --build-config ${{matrix.buildType}} --output-dir-path=_temp --temp-path=_temp
- name: Disk Usage - Post-archive
if: always()
run: |
python ./Scripts/print_disk_usage.py
- name: Upload binaries archive
uses: actions/[email protected]
with:
name: ${{steps.createDist.outputs.artifact_name}}
path: _temp/${{steps.createDist.outputs.artifact_name}}.zip
- name: Upload symbols archive
uses: actions/[email protected]
with:
name: ${{steps.createDist.outputs.artifact_name_symbols}}
path: _temp/${{steps.createDist.outputs.artifact_name_symbols}}.zip