Skip to content

Commit

Permalink
Add dllbuild to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
roblabla committed Feb 17, 2024
1 parent 4bc8a11 commit 0e122dc
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,38 @@ jobs:
path: scripts/prefix
# An explicit key for restoring and saving the cache
key: ${{ steps.cache-toolchain.outputs.cache-primary-key }}

build-dll:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- 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')}}
- if: ${{ steps.cache-toolchain.outputs.cache-hit != 'true' }}
name: Install prefix
id: install_prefix
run: python scripts/create_devenv.py scripts/dls scripts/prefix
- name: Build binary
run: python scripts/build.py --build-type dllbuild
- uses: actions/upload-artifact@v3
with:
name: th06e-dll
path: |
build/th06e.dll
build/th06e.pdb
- 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 }}

0 comments on commit 0e122dc

Please sign in to comment.