mirror of
https://github.com/JakeWharton/mosaic.git
synced 2025-11-02 21:40:06 +08:00
Sanity check samples on all platforms (#881)
This commit is contained in:
17
.github/workflows/build.yaml
vendored
17
.github/workflows/build.yaml
vendored
@ -268,15 +268,22 @@ jobs:
|
|||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
samples:
|
samples:
|
||||||
runs-on: macos-15
|
|
||||||
needs:
|
needs:
|
||||||
- tty-zig
|
- tty-zig
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
|
platform:
|
||||||
|
- os: macOS-15
|
||||||
|
target: macosArm64
|
||||||
|
- os: ubuntu-24.04
|
||||||
|
target: linuxX64
|
||||||
|
- os: windows-2025
|
||||||
|
target: mingwX64
|
||||||
sample:
|
sample:
|
||||||
- counter
|
- counter
|
||||||
- jest
|
- jest
|
||||||
|
runs-on: ${{ matrix.platform.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/download-artifact@v4
|
- uses: actions/download-artifact@v4
|
||||||
@ -290,9 +297,11 @@ jobs:
|
|||||||
java-version-file: .github/workflows/.java-version
|
java-version-file: .github/workflows/.java-version
|
||||||
- uses: gradle/actions/setup-gradle@v4
|
- uses: gradle/actions/setup-gradle@v4
|
||||||
|
|
||||||
- run: ./gradlew -p samples/${{ matrix.sample }} linkReleaseExecutableMacosArm64 installJvmDist
|
- run: |
|
||||||
- run: ./samples/${{ matrix.sample }}/build/install/${{ matrix.sample }}-jvm/bin/${{ matrix.sample }}
|
./gradlew -p samples/${{ matrix.sample }} installJvmDist linkReleaseExecutable${{ matrix.platform.target }}
|
||||||
- run: ./samples/${{ matrix.sample }}/build/bin/macosArm64/releaseExecutable/${{ matrix.sample }}.kexe
|
./samples/${{ matrix.sample }}/build/install/${{ matrix.sample }}-jvm/bin/${{ matrix.sample }}
|
||||||
|
./samples/${{ matrix.sample }}/build/bin/${{ matrix.platform.target }}/releaseExecutable/${{ matrix.sample }}.*
|
||||||
|
shell: bash
|
||||||
|
|
||||||
final-status:
|
final-status:
|
||||||
if: always()
|
if: always()
|
||||||
|
|||||||
Reference in New Issue
Block a user