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:
runs-on: ubuntu-latest
strategy:
matrix:
- java: [ '17', '18' ]
+ java: [ '17', '19' ]
steps:
- uses: actions/checkout@v3
with:
distribution: 'adopt'
java-version: ${{ matrix.java }}
+ cache: 'gradle'
- name: Build with Gradle
run: ./gradlew --no-daemon build
- name: Compress archive
with:
version: 'latest'
java-version: '17'
+ cache: 'gradle'
components: 'native-image'
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build with Gradle