X-Git-Url: https://git.nmode.ca/signal-cli/blobdiff_plain/5b5644574114a898b66277e144dbe279ef58effe..bea659f9484a2aba47c4d8dad503f18b0aaff19b:/.github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 06ffe066..1c6bb3c0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,7 @@ on: workflow_call: permissions: - contents: read # to fetch code (actions/checkout) + contents: write # to fetch code (actions/checkout) and submit dependency graph (gradle/gradle-build-action) jobs: build: @@ -16,7 +16,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - java: [ '17', '21' ] + java: [ '21' ] steps: - uses: actions/checkout@v4 @@ -25,7 +25,10 @@ jobs: with: distribution: 'zulu' java-version: ${{ matrix.java }} - cache: 'gradle' + - name: Setup Gradle + uses: gradle/gradle-build-action@v2 + with: + dependency-graph: generate-and-submit - name: Build with Gradle run: ./gradlew --no-daemon build - name: Compress archive @@ -45,9 +48,8 @@ jobs: - uses: graalvm/setup-graalvm@v1 with: version: 'latest' - java-version: '17' + java-version: '21' cache: 'gradle' - components: 'native-image' github-token: ${{ secrets.GITHUB_TOKEN }} - name: Build with Gradle run: ./gradlew --no-daemon nativeCompile