Skip to content

Commit f82058c

Browse files
2 parents b65480d + 59cf30c commit f82058c

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.github/workflows/update_specs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
branches:
1010
- master
1111
paths:
12-
- 'docs/spec'
12+
- 'docs/spec/**'
1313

1414
jobs:
1515
update_specs:

examples/build.gradle

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ description = 'Ballerina - Regex Examples'
2424

2525
def ballerinaDist = "${project.rootDir}/target/ballerina-runtime"
2626
def examples = ["form-validator"]
27+
def nativeFlag = ""
2728

2829
clean {
2930
examples.forEach { example ->
@@ -33,15 +34,18 @@ clean {
3334
}
3435

3536
task testExamples {
37+
if (project.hasProperty('balNativeTest')) {
38+
nativeFlag = '--native'
39+
}
3640
doLast {
3741
examples.each { example ->
3842
try {
3943
exec {
4044
workingDir "${project.projectDir}/${example}"
4145
if (Os.isFamily(Os.FAMILY_WINDOWS)) {
42-
commandLine 'cmd', '/c', "${ballerinaDist}/bin/bal.bat test && exit %%ERRORLEVEL%%"
46+
commandLine 'cmd', '/c', "${ballerinaDist}/bin/bal.bat test ${nativeFlag} && exit %%ERRORLEVEL%%"
4347
} else {
44-
commandLine 'sh', '-c', "${ballerinaDist}/bin/bal test"
48+
commandLine 'sh', '-c', "${ballerinaDist}/bin/bal test ${nativeFlag}"
4549
}
4650
}
4751
} catch (Exception e) {

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
org.gradle.caching=true
22
group=io.ballerina.stdlib
3-
version=1.3.1-SNAPSHOT
3+
version=1.3.2-SNAPSHOT
44

55
ballerinaLangVersion=2201.0.4
66

0 commit comments

Comments
 (0)