Compare commits
2 commits
a2a5f284b6
...
8251473b05
Author | SHA1 | Date | |
---|---|---|---|
8251473b05 | |||
bef5aed2e3 |
2 changed files with 6 additions and 26 deletions
29
.github/workflows/bld.yml
vendored
29
.github/workflows/bld.yml
vendored
|
@ -6,8 +6,10 @@ env:
|
|||
KOTLIN_HOME: /usr/share/kotlinc
|
||||
|
||||
jobs:
|
||||
build-bld-linux:
|
||||
runs-on: ubuntu-latest
|
||||
build-bld-project:
|
||||
runs-on:
|
||||
- ubuntu-latest
|
||||
- windows-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
|
@ -38,27 +40,4 @@ jobs:
|
|||
run: ./bld download
|
||||
|
||||
- name: Run tests
|
||||
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
|
|
@ -61,10 +61,11 @@ public class ExampleBuild extends Project {
|
|||
@Override
|
||||
public void compile() throws Exception {
|
||||
// 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()
|
||||
// .kotlinHome("path/to/kotlin")
|
||||
// .kotlinc("path/to/kotlinc")
|
||||
.compileOptions(new CompileOptions().verbose(true))
|
||||
.compileOptions(options)
|
||||
.fromProject(this);
|
||||
|
||||
if (!CompileKotlinOperation.isWindows()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue