Skip to content

fix commnad

fix commnad #68

Workflow file for this run

name: build
on: [push]
env:
app-path: ./Test/App
sln-name: ./Test.sln
version: 0.6.13
jobs:
build:
name: MSBuild
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Setup MSBuild.exe
uses: microsoft/[email protected]
# OpenSiv3D セットアップ
- name: Setup s3d
run: |
bitsadmin /transfer s3d-download "https://siv3d.jp/downloads/Siv3D/manual/${{ env.version }}/OpenSiv3D_SDK_${{ env.version }}.zip" "C:\OpenSiv3D_SDK.zip"
Expand-Archive -Path "C:\OpenSiv3D_SDK.zip" -DestinationPath "C:"
shell: powershell
- name: Set Env
run: |
$s3dVersion = "${{ env.version }}"
$s3dVersionEnv = "SIV3D_" + $s3dVersion.Replace('.', '_')
$setCommand = "set $s3dVersionEnv=C:\OpenSiv3D_SDK_${{ env.version }}"
Invoke-Expression $setCommand
echo Siv3D Path > %SIV3D_0_6_13%
shell: powershell
# ビルド
- name: MSBuild
run: msbuild ${{env.sln-name}} -p:Configuration=Release;Platform="x64"
shell: cmd
# ビルド結果をアップロード
- name: Upload artifact
uses: actions/upload-artifact@v1
with:
name: build-result
path: ${{env.app-path}}