kotlin-result/.github/workflows/build.yaml

57 lines
1.1 KiB
YAML
Raw Normal View History

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