Skip to content

Commit

Permalink
Tried to parallelize build
Browse files Browse the repository at this point in the history
  • Loading branch information
asm0dey committed Jul 10, 2023
1 parent 382b066 commit 0ae6cd4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ permissions:
contents: read

jobs:
build:
uses: ./.github/workflows/gradle.yml
deploy:
needs: build
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -32,10 +35,6 @@ jobs:
with:
java-version: '17'
distribution: 'temurin'
- name: Build with Gradle
uses: gradle/gradle-build-action@bd5760595778326ba7f1441bcf7e88b49de61a25
with:
arguments: build check
- name: Gradle publish
uses: gradle/gradle-build-action@bd5760595778326ba7f1441bcf7e88b49de61a25
with:
Expand Down
19 changes: 16 additions & 3 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,27 @@ on:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow: call

permissions:
contents: read

jobs:
build:

runs-on: macos-latest
strategy:
matrix:
include:
- target: iosSimulatorArm64Test
os: macos-latest
- target: jvmTest
os: ubuntu-latest
- target: linuxX64Test
os: ubuntu-latest
- target: testDebugUnitTest
os: ubuntu-latest
- target: testReleaseUnitTest
os: ubuntu-latest
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3
Expand All @@ -36,4 +49,4 @@ jobs:
- name: Build with Gradle
uses: gradle/gradle-build-action@bd5760595778326ba7f1441bcf7e88b49de61a25
with:
arguments: build check
arguments: ${{ matrix.target }}

0 comments on commit 0ae6cd4

Please sign in to comment.