]> nmode's Git Repositories - signal-cli/blobdiff - .github/workflows/ci.yml
Fix issue with unknown identity serviceId
[signal-cli] / .github / workflows / ci.yml
index f336c48008cbc51eed7b1dbc4f1eadb8517f3549..c02b0623ff2da874f8ac61dcc84bceba84bc929d 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:
@@ -17,6 +25,7 @@ jobs:
         with:
           distribution: 'adopt'
           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