]> nmode's Git Repositories - signal-cli/blobdiff - .github/workflows/ci.yml
Bump version to 0.11.11
[signal-cli] / .github / workflows / ci.yml
index a6c3f08c2482a5896aa590653a9f0ae7a85eff4e..8ffd7b48ed314db2da4f803f74177d61f2217cee 100644 (file)
@@ -1,6 +1,14 @@
 name: signal-cli CI
 
-on: [ push, pull_request, workflow_call ]
+on:
+  push:
+    branches:
+      - '**'
+  pull_request:
+  workflow_call:
+
+permissions:
+  contents: read # to fetch code (actions/checkout)
 
 jobs:
   build:
@@ -8,15 +16,16 @@ jobs:
     runs-on: ubuntu-latest
     strategy:
       matrix:
-        java: [ '17', '18' ]
+        java: [ '17', '20' ]
 
     steps:
       - uses: actions/checkout@v3
       - name: Set up JDK
         uses: actions/setup-java@v3
         with:
-          distribution: 'adopt'
+          distribution: 'temurin'
           java-version: ${{ matrix.java }}
+          cache: 'gradle'
       - name: Build with Gradle
         run: ./gradlew --no-daemon build
       - name: Compress archive
@@ -37,6 +46,7 @@ jobs:
         with:
           version: 'latest'
           java-version: '17'
+          cache: 'gradle'
           components: 'native-image'
           github-token: ${{ secrets.GITHUB_TOKEN }}
       - name: Build with Gradle