Improve EnemyEclInstr #1402
Workflow file for this run
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: Build binary | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
devenv: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Get toolchain from cache | |
id: cache-toolchain | |
uses: actions/cache/restore@v3 | |
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')}} | |
# No need to download here. | |
lookup-only: true | |
- if: ${{ steps.cache-toolchain.outputs.cache-hit != 'true' }} | |
name: Install prefix | |
id: install_prefix | |
run: python scripts/create_devenv.py scripts/dls scripts/prefix | |
- if: always() && steps.cache-toolchain.outputs.cache-hit != 'true' && steps.install_prefix.outcome == 'success' | |
name: Save toolchain to cache | |
uses: actions/cache/save@v3 | |
with: | |
# A directory to store and save the cache | |
path: scripts/prefix | |
# An explicit key for restoring and saving the cache | |
key: ${{ steps.cache-toolchain.outputs.cache-primary-key }} | |
build: | |
needs: ['devenv'] | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.4' | |
- name: Get toolchain from cache | |
id: cache-toolchain | |
uses: actions/cache/restore@v3 | |
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')}} | |
# This should never happen, as the devenv step plays before us. | |
fail-on-cache-miss: true | |
- name: Build binary | |
run: python scripts/build.py -j0 | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: th06e | |
path: | | |
build/th06e.exe | |
build/th06e.pdb | |
build-diff: | |
needs: ['devenv'] | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.4' | |
- name: Get toolchain from cache | |
id: cache-toolchain | |
uses: actions/cache/restore@v3 | |
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')}} | |
# This should never happen, as the devenv step plays before us. | |
fail-on-cache-miss: true | |
- name: Build binary | |
run: python scripts/build.py -j0 --build-type objdiffbuild | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: th06e-diff | |
path: | | |
build/objdiff/reimpl | |
build-dll: | |
needs: ['devenv'] | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.4' | |
- name: Get toolchain from cache | |
id: cache-toolchain | |
uses: actions/cache/restore@v3 | |
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')}} | |
# This should never happen, as the devenv step plays before us. | |
fail-on-cache-miss: true | |
- name: Build binary | |
run: python scripts/build.py -j0 --build-type dllbuild | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: th06e-dll | |
path: | | |
build/th06e.dll | |
build/th06e.pdb |