Skip to content

test

test #65

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('.', '_')
echo "version-env=$s3dVersionEnv" >> $GITHUB_ENV
# ビルド
- name: MSBuild
run: msbuild ${{env.sln-name}} -p:Configuration=Release;Platform="x64"
shell: cmd
env:
${{$version-env}}: C:\OpenSiv3D_SDK_${{ env.version }}

Check failure on line 36 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / build

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 36, Col: 9): Unexpected symbol: '$version-env'. Located at position 1 within expression: $version-env
# ビルド結果をアップロード
- name: Upload artifact
uses: actions/upload-artifact@v1
with:
name: build-result
path: ${{env.app-path}}