同梱版readmeとライセンスファイルをリリースzipに含めるようにワークフローを修正 #81
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: test | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
test: | |
name: hsptest_test以下を全てテスト | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: cache HSP3.6 | |
id: cache-hsp36 | |
uses: actions/cache@v3 | |
with: | |
path: C:/hsp36 | |
key: ${{ runner.os }}-hsp36 | |
restore-keys: | | |
${{ runner.os }}-hsp36 | |
- name: download HSP3.6 | |
if: ${{ steps.cache-hsp36.outputs.cache-hit != 'true' }} | |
uses: robinraju/[email protected] | |
with: | |
repository: "onitama/OpenHSP" | |
tag: "v3.6" | |
fileName: "hsp36en.zip" | |
- name: unzip hsp36en.zip | |
if: ${{ steps.cache-hsp36.outputs.cache-hit != 'true' }} | |
run: 7z x hsp36en.zip -oC:/ | |
- name: add hsp36 to path | |
shell: pwsh | |
run: echo "C:/hsp36" >> $env:GITHUB_PATH | |
- name: compile and install hsptest | |
shell: pwsh | |
run: | | |
hspcmp -o"compile.ax" --compath="C:/hsp36/common" ./compile.hsp | |
cp common/* C:/hsp36/common/ | |
hsp3cl compile.ax | |
cp hsptest.exe C:/hsp36/ | |
- name: test | |
shell: pwsh | |
run: | | |
hsptest -v -s hsptest_test |