Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
splintergu committed Aug 31, 2023
1 parent b558404 commit 27fca37
Showing 1 changed file with 1 addition and 26 deletions.
27 changes: 1 addition & 26 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,6 @@ jobs:
dotnet publish SaveFileMapping -c Release -f net6.0 -r win-x64 -o Build/Release/net6/ /nowarn:cs0618
dotnet publish libMBIN-DLL -c Release -f net7.0 -r win-x64 -o Build/Release/net7/ /nowarn:cs0618
dotnet publish MBINCompiler -c Release -f net7.0 -r win-x64 -o Build/Release/net7/ /nowarn:cs0618
- name: Build Linux binaries
run: |
dotnet publish libMBIN-DLL -c Release -f net6.0 -r linux-x64 -o Build/Release/linux-x64/net6/ /nowarn:cs0618
dotnet publish MBINCompiler -c Release -f net6.0 -r linux-x64 -o Build/Release/linux-x64/net6/ /nowarn:cs0618
dotnet publish SaveFileMapping -c Release -f net6.0 -r linux-x64 -o Build/Release/linux-x64/net6/ /nowarn:cs0618
dotnet publish libMBIN-DLL -c Release -f net7.0 -r linux-x64 -o Build/Release/linux-x64/net7/ /nowarn:cs0618
dotnet publish MBINCompiler -c Release -f net7.0 -r linux-x64 -o Build/Release/linux-x64/net7/ /nowarn:cs0618
- name: Move the exe so the tests can find it easier
shell: bash
run: |
Expand All @@ -54,17 +47,7 @@ jobs:
run: python -m pytest --mbincompiler_path="MBINCompiler.exe" --tb=no --report
- name: Generate save data mapping
shell: bash
run : |
Build/Release/net6/SaveFileMapping.exe
- name: Build packages
shell: bash
run: |
/usr/bin/tar -zcvf "MBINCompiler-linux-x64-dotnet6.tgz" report.json mapping.json --directory=Build/Release/linux-x64/net6/ MBINCompiler libMBIN.dll
cp Build/Release/linux-x64/net7/MBINCompiler Build/Release/linux-x64/net7/MBINCompiler-dotnet7
cp Build/Release/linux-x64/net7/libMBIN.dll Build/Release/linux-x64/net7/libMBIN-dotnet7.dll
/usr/bin/tar -zcvf MBINCompiler-linux-x64-dotnet7.tgz report.json mapping.json --directory=Build/Release/linux-x64/net7/ MBINCompiler-dotnet7 libMBIN-dotnet7.dll
7z a -tzip "MBINCompiler-win-x64-dotnet6.zip" MBINCompiler.exe libMBIN.dll report.json mapping.json
7z a -tzip MBINCompiler-win-x64-dotnet7.zip MBINCompiler-dotnet7.exe libMBIN-dotnet7.dll report.json mapping.json
run : Build/Release/net6/SaveFileMapping.exe
- name: Upload binary for release
uses: actions/upload-artifact@v3
with:
Expand All @@ -76,10 +59,6 @@ jobs:
libMBIN-dotnet7.dll
report.json
mapping.json
MBINCompiler-win-x64-dotnet6.zip
MBINCompiler-win-x64-dotnet7.zip
MBINCompiler-linux-x64-dotnet6.tgz
MBINCompiler-linux-x64-dotnet7.tgz
release:
name: Release MBINCompiler binaries and other data
# Only run this job if the commit was tagged.
Expand Down Expand Up @@ -110,10 +89,6 @@ jobs:
libMBIN-dotnet7.dll
report.json
mapping.json
MBINCompiler-win-x64-dotnet6.zip
MBINCompiler-win-x64-dotnet7.zip
MBINCompiler-linux-x64-dotnet6.tgz
MBINCompiler-linux-x64-dotnet7.tgz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Check if tag doesn't match version
Expand Down

0 comments on commit 27fca37

Please sign in to comment.