Skip to content

Enabling Mac/Native support (again) #35

Enabling Mac/Native support (again)

Enabling Mac/Native support (again) #35

Workflow file for this run

name: Build PR
on:
pull_request:
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 }}
GITHUB_PR_NUMBER: ${{ github.event.number }}
BUILD_QUALITY: "PR"