From d5b6a5d8d8fb5ac4088190d6865d86afe63a2c50 Mon Sep 17 00:00:00 2001 From: Diamante Date: Mon, 26 Aug 2024 20:15:59 +0200 Subject: [PATCH] build: use node20 based actions --- .github/workflows/build.yml | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a5065d28..8ddfc852 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,14 +22,14 @@ jobs: - Release steps: - name: Check out files - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: true fetch-depth: 0 lfs: false - name: Add msbuild to PATH - uses: microsoft/setup-msbuild@v1.1.3 + uses: microsoft/setup-msbuild@v2 - name: Generate project files run: tools/premake5 vs2022 @@ -41,7 +41,7 @@ jobs: run: msbuild /m /v:minimal /p:Configuration=${{matrix.configuration}} /p:Platform=x64 build/h2-mod.sln - name: Upload ${{matrix.configuration}} binaries - uses: actions/upload-artifact@v3.1.0 + uses: actions/upload-artifact@v4 with: name: ${{matrix.configuration}} binaries path: | @@ -49,7 +49,7 @@ jobs: build/bin/x64/${{matrix.configuration}}/h2-mod.pdb - name: Upload ${{matrix.configuration}} data artifacts - uses: actions/upload-artifact@v3.1.0 + uses: actions/upload-artifact@v4 with: name: ${{matrix.configuration}} data artifacts path: | @@ -69,18 +69,18 @@ jobs: run: echo "FED_MASTER_PATH=${{ secrets.FED_MASTER_SSH_PATH_DEV }}" >> $GITHUB_ENV - name: Download Release binaries - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: Release binaries - name: Download Release data artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: Release data artifacts path: data - name: Install SSH key - uses: shimataro/ssh-key-action@v2 + uses: shimataro/ssh-key-action@v2.7.0 with: key: ${{ secrets.FED_MASTER_SSH_PRIVATE_KEY }} known_hosts: 'just-a-placeholder-so-we-dont-get-errors' @@ -88,13 +88,6 @@ jobs: - name: Add known hosts run: ssh-keyscan -H ${{ secrets.FED_MASTER_SSH_ADDRESS }} >> ~/.ssh/known_hosts - - name: Wait for previous workflows - uses: softprops/turnstyle@v1 - with: - poll-interval-seconds: 10 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Remove old data files run: ssh ${{ secrets.FED_MASTER_SSH_USER }}@${{ secrets.FED_MASTER_SSH_ADDRESS }} rm -rf ${{ env.FED_MASTER_PATH }}/h2-mod/*