Skip to content

Commit

Permalink
Fix GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbylight committed Dec 1, 2024
1 parent 0f48d73 commit f1a366e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
22 changes: 10 additions & 12 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,17 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up JDK 8
uses: actions/setup-java@v2
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '8'
distribution: 'adopt'
java-version: '17'
distribution: 'temurin'

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
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.
Expand All @@ -65,12 +65,10 @@ jobs:
# and modify them (or add more) to build your code if your project
# uses a compiled language

# Note: Assumes we're running on Ubuntu
# https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2404-Readme.md
- name: Build
#run: ./gradlew build --warning-mode all
uses: GabrielBB/xvfb-action@v1
with:
run: ./gradlew build -xsign -xpublish --warning-mode all
working-directory: ./ #optional
run: xvfb-run ./gradlew build -xsign -xpublish --warning-mode all

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v3
20 changes: 11 additions & 9 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,25 @@ jobs:

strategy:
matrix:
java: [ '8', '11', '14', '17']
java: [ '17', '21', '23' ]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Verify gradle wrapper
uses: gradle/actions/wrapper-validation@v4
if: matrix.java == '17'

- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v2
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'adopt'
distribution: 'temurin'

- name: Grant execute permission for gradlew
run: chmod +x gradlew

# Note: Assumes we're running on Ubuntu
# https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2404-Readme.md
- name: Build with Gradle
#run: ./gradlew build --warning-mode all
uses: GabrielBB/xvfb-action@v1
with:
run: ./gradlew build -xsign -xpublish --warning-mode all
working-directory: ./ #optional
run: xvfb-run ./gradlew build -xsign -xpublish --warning-mode all

0 comments on commit f1a366e

Please sign in to comment.