From 0cbb49367bf19785d6f1a1cd1e4721d3f5a797eb Mon Sep 17 00:00:00 2001 From: Octavia Togami Date: Sun, 31 Mar 2024 18:24:52 -0700 Subject: [PATCH] Update actions --- .github/workflows/codeql-analysis.yml | 28 +++++---------------------- .github/workflows/gradle.yml | 20 +++++++++++++------ 2 files changed, 19 insertions(+), 29 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 73d104bc48..453f94a57f 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -25,39 +25,21 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up JDK - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: 17 cache: 'gradle' distribution: 'temurin' - # 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. - # By default, queries listed here will override any specified in a config file. - # Prefix the list here with "+" to use these queries and those in the config file. - # queries: ./path/to/local/query, your-org/your-repo/queries@main - # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). - # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@v2 - - # ℹī¸ Command-line programs to run using the OS shell. - # 📚 https://git.io/JvXDl - - # ✏ī¸ If the Autobuild fails above, remove it and uncomment the following three lines - # and modify them (or add more) to build your code if your project - # uses a compiled language - - #- run: | - # make bootstrap - # make release + uses: github/codeql-action/autobuild@v3 - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + uses: github/codeql-action/analyze@v3 diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index c5d2cf7db5..b86f176a44 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -11,22 +11,30 @@ jobs: os: [ubuntu-latest, windows-latest] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 + - name: Set up JDK - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: 17 - cache: 'gradle' distribution: 'temurin' - - name: Build with Gradle + + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v3 + with: + cache-read-only: ${{ !(github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/version/')) }} + + - name: Execute Gradle build run: ./gradlew build -s - - uses: actions/upload-artifact@v3 + + - uses: actions/upload-artifact@v4 name: Archive Reports if: always() with: name: reports for ${{ matrix.os }} path: '**/build/reports/**' - - uses: actions/upload-artifact@v3 + + - uses: actions/upload-artifact@v4 name: Archive Logs if: always() with: