Skip to content

Commit

Permalink
Create workflow.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dalafiarisamuel committed Jun 26, 2024
1 parent 72c4b56 commit 561fb1f
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build KMP

on:
workflow_dispatch:

jobs:
build:
strategy:
matrix:
include:
- target: iosSimulatorArm64Test
os: macos-latest
- target: testReleaseUnitTest
os: ubuntu-latest
runs-on: ${{ matrix.os }}

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1

- name: Setup JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: "zulu"

- name: Setup Gradle cache
uses: actions/cache@v3
with:
path: |
~/.konan
key: ${{ runner.os }}-${{ hashFiles('**/.lock') }}

- name: Build with Gradle
uses: gradle/actions/setup-gradle@v3
with:
arguments: ${{ matrix.target }}

0 comments on commit 561fb1f

Please sign in to comment.