From 88b6bed93e16aed7663ddab960178f6045e4a8fa Mon Sep 17 00:00:00 2001 From: boldsuck Date: Wed, 15 Jan 2025 21:28:59 +0100 Subject: [PATCH] Upgrade GH workflows to remove deprecation notices (#1545) --- .github/workflows/build.yml | 21 +++++++++++---------- .github/workflows/codeql-analysis.yml | 4 ++-- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3d66321d71..8fc6b6a481 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,22 +26,23 @@ jobs: cache: gradle - name: Build with Gradle run: ./gradlew build --stacktrace --scan - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 if: failure() with: name: error-reports-${{ matrix.os }} path: ${{ github.workspace }}/desktop/build/reports - name: cache nodes dependencies - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: include-hidden-files: true name: cached-localnet path: .localnet + overwrite: true - name: Install dependencies if: ${{ matrix.os == 'ubuntu-22.04' }} run: | - sudo apt update - sudo apt install -y rpm libfuse2 flatpak flatpak-builder appstream + sudo apt-get update + sudo apt-get install -y rpm libfuse2 flatpak flatpak-builder appstream flatpak remote-add --if-not-exists --user flathub https://dl.flathub.org/repo/flathub.flatpakrepo - name: Install WiX Toolset if: ${{ matrix.os == 'windows-latest' }} @@ -99,41 +100,41 @@ jobs: shell: powershell # win - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 name: "Windows artifacts" if: ${{ matrix.os == 'windows-latest'}} with: name: haveno-windows path: ${{ github.workspace }}/release-windows # macos - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 name: "macOS artifacts" if: ${{ matrix.os == 'macos-13' }} with: name: haveno-macos path: ${{ github.workspace }}/release-macos # linux - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 name: "Linux - deb artifact" if: ${{ matrix.os == 'ubuntu-22.04' }} with: name: haveno-linux-deb path: ${{ github.workspace }}/release-linux-deb - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 name: "Linux - rpm artifact" if: ${{ matrix.os == 'ubuntu-22.04' }} with: name: haveno-linux-rpm path: ${{ github.workspace }}/release-linux-rpm - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 name: "Linux - AppImage artifact" if: ${{ matrix.os == 'ubuntu-22.04' }} with: name: haveno-linux-appimage path: ${{ github.workspace }}/release-linux-appimage - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 name: "Linux - flatpak artifact" if: ${{ matrix.os == 'ubuntu-22.04' }} with: diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index e6498b3e16..7e0fefe9e7 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -44,7 +44,7 @@ jobs: # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v2 + uses: github/codeql-action/init@v3 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -68,4 +68,4 @@ jobs: run: ./gradlew build --stacktrace -x test -x checkstyleMain -x checkstyleTest - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + uses: github/codeql-action/analyze@v3