Skip to content

Commit

Permalink
Use DIFFBUILD in compare CI step
Browse files Browse the repository at this point in the history
  • Loading branch information
roblabla committed Nov 20, 2023
1 parent fd0c28b commit 8018ce8
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,26 @@ jobs:
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: scripts/build.bat DIFFBUILD=true
- uses: actions/upload-artifact@v3
with:
name: th06e-diff
path: |
build/th06e.exe
build/th06e.pdb
2 changes: 1 addition & 1 deletion .github/workflows/compare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
run_id: context.payload.workflow_run ? context.payload.workflow_run.id : context.payload.inputs.workflow_id,
});
let matchArtifact = allArtifacts.data.artifacts.filter((artifact) => {
return artifact.name == "th06e"
return artifact.name == "th06e-diff"
})[0];
let download = await github.rest.actions.downloadArtifact({
owner: context.repo.owner,
Expand Down

0 comments on commit 8018ce8

Please sign in to comment.