X-Git-Url: https://git.nmode.ca/signal-cli/blobdiff_plain/eb71fd1a5abff34af9e8d6e43a4c13885822856e..542a3f36a4d3e3560dd00ac702f638671da10144:/.github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f336c480..c02b0623 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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