Compare commits

...

2 commits

Author SHA1 Message Date
8251473b05
Run all matrices under Windows 2025-03-23 03:15:41 -07:00
bef5aed2e3
Move compile options to a var 2025-03-23 03:14:35 -07:00
2 changed files with 6 additions and 26 deletions

View file

@ -6,8 +6,10 @@ env:
KOTLIN_HOME: /usr/share/kotlinc KOTLIN_HOME: /usr/share/kotlinc
jobs: jobs:
build-bld-linux: build-bld-project:
runs-on: ubuntu-latest runs-on:
- ubuntu-latest
- windows-latest
strategy: strategy:
matrix: matrix:
@ -39,26 +41,3 @@ jobs:
- name: Run tests - name: Run tests
run: ./bld compile test run: ./bld compile test
build-bld-windows:
runs-on: windows-latest
steps:
- name: Checkout source repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: "zulu"
java-version: 17
- name: Download dependencies [examples]
working-directory: examples
run: ./bld download
- name: Run tests [examples]
working-directory: examples
run: ./bld compile test

View file

@ -61,10 +61,11 @@ public class ExampleBuild extends Project {
@Override @Override
public void compile() throws Exception { public void compile() throws Exception {
// The source code located in src/main/kotlin and src/test/kotlin will be compiled // The source code located in src/main/kotlin and src/test/kotlin will be compiled
var options = new CompileOptions().verbose(true);
var op = new CompileKotlinOperation() var op = new CompileKotlinOperation()
// .kotlinHome("path/to/kotlin") // .kotlinHome("path/to/kotlin")
// .kotlinc("path/to/kotlinc") // .kotlinc("path/to/kotlinc")
.compileOptions(new CompileOptions().verbose(true)) .compileOptions(options)
.fromProject(this); .fromProject(this);
if (!CompileKotlinOperation.isWindows()) { if (!CompileKotlinOperation.isWindows()) {