Skip to content

Commit 7dfceb1

Browse files
committed
update build workflow: adjust matrix, add OS-specific build steps, disable certain platform tests
1 parent 0fa06bb commit 7dfceb1

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: build
2+
23
on:
34
workflow_dispatch:
45
pull_request:
@@ -9,9 +10,8 @@ on:
910
jobs:
1011
build:
1112
strategy:
13+
fail-fast: false
1214
matrix:
13-
# os: [ macOS-latest ]
14-
# os: [ macOS-latest, ubuntu-18.04 ] GitHub actions removed ubuntu-18.04
1515
os: [ macOS-latest, windows-latest, ubuntu-latest ]
1616
runs-on: ${{matrix.os}}
1717
steps:
@@ -57,6 +57,11 @@ jobs:
5757
echo "c:\msys64\mingw64\bin" >> $GITHUB_PATH
5858
5959
- name: Build
60+
if: matrix.os != 'macOS-latest'
61+
run: ./gradlew build --no-daemon --stacktrace
62+
63+
- name: Build and Test
64+
if: matrix.os == 'macOS-latest'
6065
run: ./gradlew build allTests --no-daemon --stacktrace
6166
env:
6267
GRADLE_OPTS: -Dorg.gradle.configureondemand=true -Dkotlin.incremental=false -Dorg.gradle.jvmargs="-Xmx4g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:MaxMetaspaceSize=512m"

sqliter-driver/build.gradle.kts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,12 @@ mavenPublishing {
8282
configureBasedOnAppliedPlugins(true, true)
8383
publishToMavenCentral(automaticRelease = true)
8484
}
85+
86+
listOf(
87+
"linuxX64Test",
88+
"linuxArm64Test",
89+
"linkDebugTestLinuxX64",
90+
"linkDebugTestLinuxArm64",
91+
"mingwX64Test",
92+
"linkDebugTestMingwX64",
93+
).forEach { tasks.findByName(it)?.enabled = false }

0 commit comments

Comments
 (0)