Skip to content

Commit

Permalink
ci: test build on all OSes
Browse files Browse the repository at this point in the history
Signed-off-by: Artyom Shendrik <[email protected]>
  • Loading branch information
amal committed Jan 22, 2024
1 parent ea0e810 commit 25d1d67
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,15 @@ env:

jobs:
buildAndCheck:
name: 'Build and check'
strategy:
fail-fast: false
matrix:
java: [ '21' ]
os: [ 'macos', 'windows', 'ubuntu' ]

name: 'Build and check on ${{ matrix.os }}'
timeout-minutes: 25
runs-on: 'macos-latest'
runs-on: '${{ matrix.os }}-latest'
if: ${{ !contains(github.event.head_commit.message, 'ci skip') }}
permissions:
contents: write
Expand All @@ -51,11 +57,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: 'Set up JDK 21'
- name: 'Set up JDK ${{ matrix.java }}'
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
java-version: '${{ matrix.java }}'

- name: 'Cached KMP things (Konan, Node, Yarn, Binaryen)'
uses: actions/cache@v3
Expand Down Expand Up @@ -106,7 +112,7 @@ jobs:
if: success() || failure()
uses: actions/upload-artifact@v4
with:
name: build-report
name: '${{ matrix.os }}-build-report'
path: |
**/build/logs/
**/build/reports/
Expand Down

0 comments on commit 25d1d67

Please sign in to comment.