Skip to content

Commit

Permalink
222
Browse files Browse the repository at this point in the history
  • Loading branch information
ACaiCat committed Aug 17, 2024
1 parent 8b6aa71 commit fc44826
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/ci-otapi3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

- uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.100'
dotnet-version: '8.0.x'

- name: Run tests
run: dotnet test
Expand All @@ -31,35 +31,35 @@ jobs:

- uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.100'
dotnet-version: '8.0.x'

- name: Install msgfmt
run: sudo apt-get install -y gettext

- name: Produce installer
run: |
cd TShockInstaller
dotnet publish -r ${{ matrix.arch }} -f net6.0 -c Release -p:PublishSingleFile=true --self-contained true
dotnet publish -r ${{ matrix.arch }} -f net8.0 -c Release -p:PublishSingleFile=true --self-contained true
- name: Produce build
run: |
cd TShockLauncher
dotnet publish -r ${{ matrix.arch }} -f net6.0 -c Release -p:PublishSingleFile=true --self-contained false
dotnet publish -r ${{ matrix.arch }} -f net8.0 -c Release -p:PublishSingleFile=true --self-contained false
- name: Chmod scripts
if: ${{ matrix.arch != 'win-x64' }}
run: |
chmod +x TShockLauncher/bin/Release/net6.0/${{ matrix.arch }}/publish/TShock.Server
chmod +x TShockLauncher/bin/Release/net8.0/${{ matrix.arch }}/publish/TShock.Server
- name: Copy installer
run: |
cp TShockInstaller/bin/Release/net6.0/${{ matrix.arch }}/publish/* TShockLauncher/bin/Release/net6.0/${{ matrix.arch }}/publish/
cp TShockInstaller/bin/Release/net8.0/${{ matrix.arch }}/publish/* TShockLauncher/bin/Release/net8.0/${{ matrix.arch }}/publish/
# preserve file perms: https://github.com/actions/upload-artifact#maintaining-file-permissions-and-case-sensitive-files
- name: Tarball artifact (non-Windows)
if: ${{ matrix.arch != 'win-x64' }}
run: |
cd TShockLauncher/bin/Release/net6.0/${{ matrix.arch }}/publish/
cd TShockLauncher/bin/Release/net8.0/${{ matrix.arch }}/publish/
tar -cvf ../../../../../../TShock-Beta-${{ matrix.arch }}-Release.tar *
- name: Upload artifact (non-Windows)
Expand All @@ -74,4 +74,4 @@ jobs:
if: ${{ matrix.arch == 'win-x64' }}
with:
name: TShock-Beta-${{ matrix.arch }}-Release
path: TShockLauncher/bin/Release/net6.0/${{ matrix.arch }}/publish/
path: TShockLauncher/bin/Release/net8.0/${{ matrix.arch }}/publish/

0 comments on commit fc44826

Please sign in to comment.