Skip to content

fix

fix #5

Workflow file for this run

name: MGSHDFix CI Builds
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
permissions:
contents: read
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: setup-msbuild
uses: microsoft/setup-msbuild@v1.1
- run: msbuild ${{ github.event.repository.name }}.sln -t:rebuild -verbosity:diag -property:Configuration=Release -property:Platform=x64
- run: cp x64\Release\${{ github.event.repository.name }}.asi ${{ github.event.repository.name }}.asi
- uses: robinraju/release-downloader@v1.8
with:
repository: "ThirteenAG/Ultimate-ASI-Loader"
latest: true
fileName: "Ultimate-ASI-Loader_x64.zip"
- run: unzip Ultimate-ASI-Loader_x64.zip -d .\
- run: C:\msys64\usr\bin\wget.exe -O .\UltimateASILoader_LICENSE.md https://raw.githubusercontent.com/ThirteenAG/Ultimate-ASI-Loader/master/license
- run: cp .\dinput8.dll .\wininet.dll
- run: mv .\dinput8.dll .\winhttp.dll
- run: mkdir .\logs
- run: cp .\README.md .\logs\${{ github.event.repository.name }}.log
- run: mkdir .\plugins
- run: mv .\README.md .\plugins\${{ github.event.repository.name }}_README.md
- run: mv .\${{ github.event.repository.name }}.ini .\plugins\${{ github.event.repository.name }}.ini
- run: mv .\${{ github.event.repository.name }}.asi .\plugins\${{ github.event.repository.name }}.asi
- name: Clean any old zip
run: |
if (Test-Path ".\${{ github.event.repository.name }}-run-${{ github.run_number }}.zip") {

Check failure on line 45 in .github/workflows/msbuild.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/msbuild.yml

Invalid workflow file

You have an error in your yaml syntax on line 45
Remove-Item ".\${{ github.event.repository.name }}-run-${{ github.run_number }}.zip"
}
- name: Create release zip
run: |
7z a -tzip ${{ github.event.repository.name }}-run-${{ github.run_number }}.zip wininet.dll winhttp.dll UltimateASILoader_LICENSE.md plugins\ logs\
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: ${{ github.event.repository.name }}-run-${{ github.run_number }}
path: ${{ github.event.repository.name }}-run-${{ github.run_number }}.zip