mirror of
https://github.com/bitsycore/skiko.git
synced 2026-10-08 07:57:27 +00:00
45 lines
1.6 KiB
YAML
45 lines
1.6 KiB
YAML
# Default Skiko CI
|
|
name: CI
|
|
|
|
# Controls when the action will run.
|
|
on:
|
|
# Triggers the workflow on push or pull request events but only for the master branch
|
|
push:
|
|
branches:
|
|
- master
|
|
- karpovich/migrate_to_m110
|
|
# TODO: temporary for faster tests, restore!
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
# Allows you to run this workflow manually from the Actions tab
|
|
workflow_dispatch:
|
|
|
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
|
jobs:
|
|
ios:
|
|
# The type of runner that the job will run on
|
|
runs-on: macos-12
|
|
# Steps represent a sequence of tasks that will be executed as part of the job
|
|
steps:
|
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-java@v2
|
|
with:
|
|
distribution: 'adopt'
|
|
java-version: '11'
|
|
- shell: bash
|
|
run: |
|
|
./gradlew --stacktrace --info -Pskiko.native.enabled=true -Pskiko.test.onci=true :skiko:iosX64Test
|
|
# iosSimulatorArm64Test will build the binary but the tests will be skipped due to X64 host machine
|
|
./gradlew --stacktrace --info -Pskiko.native.enabled=true -Pskiko.test.onci=true :skiko:iosSimulatorArm64Test
|
|
./gradlew --stacktrace --info -Pskiko.native.enabled=true :skiko:publishToMavenLocal
|
|
# TODO run iOS specific tests on iPhone simulator
|
|
- uses: actions/upload-artifact@v2
|
|
if: always()
|
|
with:
|
|
name: test-reports-macos
|
|
path: ./skiko/build/reports/tests
|
|
retention-days: 5
|
|
|