mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
27 lines
689 B
YAML
27 lines
689 B
YAML
name: signal-cli CI
|
|
|
|
on: [ push, pull_request, workflow_call ]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
java: [ '17', '18' ]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Set up JDK
|
|
uses: actions/setup-java@v1
|
|
with:
|
|
java-version: ${{ matrix.java }}
|
|
- name: Build with Gradle
|
|
run: ./gradlew build
|
|
- name: Compress archive
|
|
run: gzip -n -9 build/distributions/signal-cli-*.tar
|
|
- name: Archive production artifacts
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: signal-cli-archive-${{ matrix.java }}
|
|
path: build/distributions/signal-cli-*.tar.gz
|