Update workflows actions to @v4 and net9

This commit is contained in:
Luke 2025-01-11 14:43:05 +10:00
parent 90f1d49887
commit 756f3138dd
2 changed files with 11 additions and 11 deletions

View file

@ -11,13 +11,13 @@ jobs:
environment: release environment: release
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
submodules: 'recursive' submodules: 'recursive'
- name: Setup .NET - name: Setup .NET
uses: actions/setup-dotnet@v3 uses: actions/setup-dotnet@v4
with: with:
dotnet-version: 6.0.400 dotnet-version: 9.0.x
- name: Restore dependencies - name: Restore dependencies
run: dotnet restore run: dotnet restore
- name: Build - name: Build

View file

@ -7,13 +7,13 @@ jobs:
runs-on: windows-latest runs-on: windows-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
submodules: 'recursive' submodules: 'recursive'
- uses: actions/setup-dotnet@v3 - uses: actions/setup-dotnet@v4
with: with:
dotnet-version: '6.0.100' dotnet-version: 9.0.x
- name: Run tests - name: Run tests
run: dotnet test run: dotnet test
@ -25,13 +25,13 @@ jobs:
arch: ["win-x64", "osx-x64", "linux-x64", "linux-arm64", "linux-arm"] arch: ["win-x64", "osx-x64", "linux-x64", "linux-arm64", "linux-arm"]
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
submodules: 'recursive' submodules: 'recursive'
- uses: actions/setup-dotnet@v3 - uses: actions/setup-dotnet@v4
with: with:
dotnet-version: '6.0.100' dotnet-version: 9.0.x
- name: Install msgfmt - name: Install msgfmt
run: sudo apt-get install -y gettext run: sudo apt-get install -y gettext
@ -63,14 +63,14 @@ jobs:
tar -cvf ../../../../../../TShock-Beta-${{ matrix.arch }}-Release.tar * tar -cvf ../../../../../../TShock-Beta-${{ matrix.arch }}-Release.tar *
- name: Upload artifact (non-Windows) - name: Upload artifact (non-Windows)
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
if: ${{ matrix.arch != 'win-x64' }} if: ${{ matrix.arch != 'win-x64' }}
with: with:
name: TShock-Beta-${{ matrix.arch }}-Release name: TShock-Beta-${{ matrix.arch }}-Release
path: TShock-Beta-${{ matrix.arch }}-Release.tar path: TShock-Beta-${{ matrix.arch }}-Release.tar
- name: Upload artifact (Windows) - name: Upload artifact (Windows)
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
if: ${{ matrix.arch == 'win-x64' }} if: ${{ matrix.arch == 'win-x64' }}
with: with:
name: TShock-Beta-${{ matrix.arch }}-Release name: TShock-Beta-${{ matrix.arch }}-Release