CLI Commands (#6) #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Release | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build_mac: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 20 | |
- name: Configure cache | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
~/.m2/repository | |
~/.konan | |
key: ${{ runner.os }}-gradle-dependency-cache | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: adopt | |
java-version: 17 | |
cache: gradle | |
- name: Lint check | |
run: ./gradlew ktlintCheck | |
- name: Build all targets | |
run: ./gradlew assemble | |
- name: Run JVM tests | |
run: ./gradlew jvmTest | |
# - name: Run Mac/Native tests | |
# run: ./gradlew macNativeTest | |
- name: Prepare for Publishing | |
run: ./gradlew prepareForPublish | |
- name: Publish to GitHub Releases | |
run: ./gradlew githubRelease | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BUILD_QUALITY: "GA" |