Feel free to join the next Helmholtz Hacky Hour #26 on Wednesday, April 21, 2021 from 2PM to 3PM!

Commit 5c9f0fa6 authored by Adam Reichold's avatar Adam Reichold

Merge branch 'extend-ci-setup' into 'master'

Extend CI setup to build and package Java code in addition to extracting it.

See merge request !2
parents 411cfec3 4cc02ddf
Pipeline #12070 passed with stage
in 38 seconds
image: rust
image: gradle:6.7.1-jdk15
variables:
YARNER_VERSION: 0.1.3
before_script:
- export CARGO_HOME="$CI_PROJECT_DIR/cargo"
- export PATH="$CARGO_HOME/bin:$PATH"
- cargo install --git https://github.com/mlange-42/yarner.git yarner --features bin
- wget -O- https://github.com/mlange-42/yarner/releases/download/${YARNER_VERSION}/yarner-${YARNER_VERSION}-linux.tar.gz | tar xz
- export PATH="$PWD/yarner:$PATH"
build:
script:
- yarner
- cd code
- gradle build
- mv build/distributions/*.zip ..
- rm -rf .gradle build
artifacts:
paths:
- code/
- docs/
- code/
- "*.zip"
......@@ -72,7 +72,7 @@ import com.artemis.*;
public class Main {
public static void main(String[] args) {
WorldConfiguration setup = new WorldConfigurationBuilder()
var setup = new WorldConfigurationBuilder()
.with(new RandomWalkSystem())
.build()
.register(new Randomness(0));
......@@ -109,7 +109,7 @@ dependencies {
}
application {
mainClassName = 'ecs_tutorial.Main'
getMainClass().set('ecs_tutorial.Main')
}
```
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment