2424 os : [{name: 'Ubuntu', runtime: 'linux-x64'}, {name: 'Windows', runtime: 'win-x64'}]
2525 dotnet : [{framework: 'net6.0', version: '6.0.0'}, {framework: 'net7.0', version: '7.0.0'}]
2626 steps :
27- - uses : actions/checkout@v3
27+ - uses : actions/checkout@v4
2828 - name : Build ${{ matrix.os.name }}-dotnet ${{ matrix.dotnet }} binaries
2929 run : |
3030 sed -i '\|<TargetFrameworks>net6.0;net7.0</TargetFrameworks>|a\ <RuntimeFrameworkVersion>${{ matrix.dotnet.version }}</RuntimeFrameworkVersion>' ./MBINCompiler/MBINCompiler.csproj
4242 cp Build/Release/${{ matrix.dotnet.framework }}/${{ matrix.os.runtime }}/publish/libMBIN.dll libMBIN.dll
4343 if : ${{matrix.os.name == 'Ubuntu' }}
4444 - name : Set up Python 3.9
45- uses : actions/setup-python@v4
45+ uses : actions/setup-python@v5
4646 with :
4747 python-version : " 3.9"
4848 - name : Install dependencies
@@ -52,15 +52,15 @@ jobs:
5252 - name : Run tests
5353 run : python -m pytest --mbincompiler_path="./MBINCompiler.exe" --tb=no --report
5454 - name : Upload Windows binaries
55- uses : actions/upload-artifact@v3
55+ uses : actions/upload-artifact@v4
5656 with :
5757 name : MBINCompiler-${{ matrix.os.name }}-${{ matrix.dotnet.framework }}
5858 path : |
5959 MBINCompiler.exe
6060 libMBIN.dll
6161 if : ${{matrix.os.name == 'Windows' }}
6262 - name : Upload Linux binaries
63- uses : actions/upload-artifact@v3
63+ uses : actions/upload-artifact@v4
6464 with :
6565 name : MBINCompiler-${{ matrix.os.name }}-${{ matrix.dotnet.framework }}
6666 path : |
6969 libMBIN.dll
7070 if : ${{matrix.os.name == 'Ubuntu' }}
7171 - name : Upload report
72- uses : actions/upload-artifact@v3
72+ uses : actions/upload-artifact@v4
7373 with :
7474 name : MBINCompiler-report
7575 path : report.json
@@ -78,14 +78,14 @@ jobs:
7878 name : Build save file mapping and generate mapping
7979 runs-on : Windows-latest
8080 steps :
81- - uses : actions/checkout@v3
81+ - uses : actions/checkout@v4
8282 - name : Build SaveFileMapping binary
8383 run : dotnet publish SaveFileMapping -c Release -f net6.0 -r win-x64 -o Build/Release/net6/ /nowarn:cs0618
8484 - name : Generate save data mapping
8585 run : Build/Release/net6/SaveFileMapping.exe
8686 shell : bash
8787 - name : Upload report
88- uses : actions/upload-artifact@v3
88+ uses : actions/upload-artifact@v4
8989 with :
9090 name : savedata-mapping
9191 path : mapping.json
9797 needs : [build_test, save_mapping]
9898 steps :
9999 - name : Download files for release
100- uses : actions/download-artifact@v3
100+ uses : actions/download-artifact@v4
101101 - name : Rename files for release
102102 run : |
103103 mv MBINCompiler-Windows-net6.0/MBINCompiler.exe MBINCompiler.exe
0 commit comments