2024-03-02 19:18:07 +00:00
|
|
|
name: Build
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ "master" ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ "master" ]
|
|
|
|
workflow_call:
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
include:
|
2024-03-02 21:33:27 +00:00
|
|
|
- os: ubuntu-latest
|
|
|
|
tasks: build
|
|
|
|
|
|
|
|
- os: macos-latest
|
|
|
|
tasks: >
|
|
|
|
iosX64Test
|
|
|
|
macosX64Test
|
|
|
|
tvosX64Test
|
|
|
|
watchosX64Test
|
|
|
|
|
|
|
|
- os: windows-latest
|
|
|
|
tasks: mingwX64Test
|
2024-03-02 19:18:07 +00:00
|
|
|
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout Project
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: Validate Gradle Wrapper
|
|
|
|
uses: gradle/wrapper-validation-action@v2
|
|
|
|
|
|
|
|
- uses: actions/cache@v3
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.konan
|
|
|
|
key: ${{ runner.os }}-${{ hashFiles('**/.lock') }}
|
|
|
|
|
|
|
|
- name: Setup JDK
|
|
|
|
uses: actions/setup-java@v3
|
|
|
|
with:
|
|
|
|
distribution: temurin
|
|
|
|
java-version: 8
|
|
|
|
|
|
|
|
- name: Setup Gradle
|
|
|
|
uses: gradle/actions/setup-gradle@v3
|
|
|
|
|
|
|
|
- name: Build with Gradle Wrapper
|
2024-03-02 21:33:27 +00:00
|
|
|
run: ./gradlew ${{ matrix.tasks }}
|