Compare commits
No commits in common. "8251473b055ef8e337b8710c1943c35264603f2e" and "a2a5f284b646aecf2ac93cacae4b72cbc757e5f7" have entirely different histories.
8251473b05
...
a2a5f284b6
2 changed files with 26 additions and 6 deletions
29
.github/workflows/bld.yml
vendored
29
.github/workflows/bld.yml
vendored
|
@ -6,10 +6,8 @@ env:
|
||||||
KOTLIN_HOME: /usr/share/kotlinc
|
KOTLIN_HOME: /usr/share/kotlinc
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-bld-project:
|
build-bld-linux:
|
||||||
runs-on:
|
runs-on: ubuntu-latest
|
||||||
- ubuntu-latest
|
|
||||||
- windows-latest
|
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
@ -40,4 +38,27 @@ jobs:
|
||||||
run: ./bld download
|
run: ./bld download
|
||||||
|
|
||||||
- name: Run tests
|
- 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
|
run: ./bld compile test
|
|
@ -61,11 +61,10 @@ 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(options)
|
.compileOptions(new CompileOptions().verbose(true))
|
||||||
.fromProject(this);
|
.fromProject(this);
|
||||||
|
|
||||||
if (!CompileKotlinOperation.isWindows()) {
|
if (!CompileKotlinOperation.isWindows()) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue