Skip to content

Commit ad7647e

Browse files
committed
CI builds
1 parent c572f22 commit ad7647e

1 file changed

Lines changed: 50 additions & 0 deletions

File tree

.github/workflows/msbuild.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: MGSHDFix CI Builds
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
build:
14+
runs-on: windows-latest
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
submodules: recursive
20+
21+
- name: setup-msbuild
22+
uses: microsoft/setup-msbuild@v1.1
23+
24+
- run: msbuild ${{ github.event.repository.name }}.sln -t:rebuild -verbosity:diag -property:Configuration=Release -property:Platform=x64
25+
- run: cp x64\Release\${{ github.event.repository.name }}.asi ${{ github.event.repository.name }}.asi
26+
27+
- uses: robinraju/release-downloader@v1.8
28+
with:
29+
repository: "ThirteenAG/Ultimate-ASI-Loader"
30+
latest: true
31+
fileName: "Ultimate-ASI-Loader_x64.zip"
32+
- run: unzip Ultimate-ASI-Loader_x64.zip -d .\
33+
- run: C:\msys64\usr\bin\wget.exe -O .\UltimateASILoader_LICENSE.md https://raw.githubusercontent.com/ThirteenAG/Ultimate-ASI-Loader/master/license
34+
- run: cp .\dinput8.dll .\wininet.dll
35+
- run: mv .\dinput8.dll .\winhttp.dll
36+
- run: mkdir .\logs
37+
- run: cp .\README.md .\logs\${{ github.event.repository.name }}.log
38+
- run: mkdir .\plugins
39+
- run: mv .\README.md .\plugins\${{ github.event.repository.name }}_README.md
40+
- run: mv .\${{ github.event.repository.name }}.ini .\plugins\${{ github.event.repository.name }}.ini
41+
- run: mv .\${{ github.event.repository.name }}.asi .\plugins\${{ github.event.repository.name }}.asi
42+
- run: 7z a -tzip ${{ github.event.repository.name }}-run-${{ github.run_number }}.zip wininet.dll winhttp.dll UltimateASILoader_LICENSE.md
43+
- run: 7z a ${{ github.event.repository.name }}-run-${{ github.run_number }}.zip plugins\
44+
- run: 7z a ${{ github.event.repository.name }}-run-${{ github.run_number }}.zip logs\
45+
46+
- name: Upload Artifact
47+
uses: actions/upload-artifact@v4
48+
with:
49+
name: ${{ github.event.repository.name }}-run-${{ github.run_number }}
50+
path: ${{ github.event.repository.name }}-run-${{ github.run_number }}.zip

0 commit comments

Comments
 (0)