Skip to content

Switch build system to ninja #165

Switch build system to ninja

Switch build system to ninja #165

Workflow file for this run

name: Build binary
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Get toolchain from cache
id: cache-toolchain
uses: actions/[email protected]
with:
# A directory to store and save the cache
path: scripts/prefix
# An explicit key for restoring and saving the cache
key: prefix-${{hashFiles('scripts/create_devenv.py')}}
- if: ${{ steps.cache-toolchain.outputs.cache-hit != 'true' }}
name: Install prefix
run: python scripts/create_devenv.py scripts/dls scripts/prefix
- name: Build binary
run: python scripts/build.py
- uses: actions/upload-artifact@v3
with:
name: th06e
path: |
build/th06e.exe
build/th06e.pdb
build-diff:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Get toolchain from cache
id: cache-toolchain
uses: actions/[email protected]
with:
# A directory to store and save the cache
path: scripts/prefix
# An explicit key for restoring and saving the cache
key: prefix-${{hashFiles('scripts/create_devenv.py')}}
- if: ${{ steps.cache-toolchain.outputs.cache-hit != 'true' }}
name: Install prefix
run: python scripts/create_devenv.py scripts/dls scripts/prefix
- name: Build binary
run: python script/build.py --build-type diffbuild
- uses: actions/upload-artifact@v3
with:
name: th06e-diff
path: |
build/th06e.exe
build/th06e.pdb