From d3c8ba89326fad0ac37283af00d860e8ce55b05e Mon Sep 17 00:00:00 2001 From: s1lentq Date: Thu, 1 Feb 2024 18:36:23 +0700 Subject: [PATCH] Update workflows/build.yml --- .github/workflows/build.yml | 30 +++++++++++------------------- 1 file changed, 11 insertions(+), 19 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f8547b3b6..766b83cd8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,20 +25,12 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - - name: Setup Nuget - uses: nuget/setup-nuget@v1 - with: - nuget-api-key: ${{ secrets.NuGetAPIKey }} - nuget-version: '5.x' - - - run: nuget restore '${{ env.solution }}' - - name: Setup MSBuild - uses: microsoft/setup-msbuild@v1.1.3 + uses: microsoft/setup-msbuild@v2 with: vs-version: '16.8' @@ -66,14 +58,14 @@ jobs: move msvc\${{ env.buildRelease }}\mp.pdb publish\debug\mp.pdb - name: Deploy artifacts - uses: actions/upload-artifact@v3.1.1 + uses: actions/upload-artifact@v4 with: name: win32 path: publish/* testdemos: name: 'Test demos' - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest container: s1lentq/testdemos:latest needs: [windows] @@ -88,7 +80,7 @@ jobs: steps: - name: Deploying windows artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: win32 @@ -140,12 +132,12 @@ jobs: linux: name: 'Linux' - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 container: s1lentq/linux86buildtools:latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 submodules: true @@ -211,7 +203,7 @@ jobs: shell: bash - name: Deploy artifacts - uses: actions/upload-artifact@v3.1.1 + uses: actions/upload-artifact@v4 id: upload-job with: name: linux32 @@ -225,17 +217,17 @@ jobs: publish: name: 'Publish' - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest needs: [windows, testdemos, linux] steps: - name: Deploying linux artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: linux32 - name: Deploying windows artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: win32