X-Git-Url: https://git.nmode.ca/signal-cli/blobdiff_plain/2e5d8fe5619e3b341b4834d457f73da159cc4633..ee12805d05f821780d5e9eec874f8c8081021934:/.github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 74a402ab..8ffd7b48 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: @@ -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,11 +46,13 @@ jobs: with: version: 'latest' java-version: '17' + cache: 'gradle' components: 'native-image' + github-token: ${{ secrets.GITHUB_TOKEN }} - name: Build with Gradle run: ./gradlew --no-daemon nativeCompile - name: Archive production artifacts uses: actions/upload-artifact@v3 with: - name: signal-cli-archive-native + name: signal-cli-native path: build/native/nativeCompile/signal-cli