diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..4d61d33 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,60 @@ +# Java Maven CircleCI 2.0 configuration file +# +# Check https://circleci.com/docs/2.0/language-java/ for more details +# +version: 2 +jobs: + build: + docker: + # specify the version you desire here + - image: circleci/openjdk:8-jdk + + # Specify service dependencies here if necessary + # CircleCI maintains a library of pre-built images + # documented at https://circleci.com/docs/2.0/circleci-images/ + # - image: circleci/postgres:9.4 + + working_directory: ~/repo + + environment: + # Customize the JVM maximum heap limit + MAVEN_OPTS: -Xmx3200m + + steps: + - checkout + + # Download and cache dependencies + - restore_cache: + keys: + - v1-dependencies-{{ checksum "pom.xml" }} + # fallback to using the latest cache if no exact match is found + - v1-dependencies- + + - run: + command: | + mvn dependency:go-offline + sudo apt-get update + sudo apt-get -y upgrade + wget https://dl.google.com/go/go1.10.linux-amd64.tar.gz + sudo tar -xvf go1.10.linux-amd64.tar.gz + sudo mv go /usr/local + + - save_cache: + paths: + - ~/.m2 + key: v1-dependencies-{{ checksum "pom.xml" }} + + - run: mvn package -Dci-build=true + + - deploy: + name: Deploy + command: | + mkdir ~/go + export GOPATH=~/go + export GOROOT=/usr/local/go + export PATH=$GOPATH/bin:$GOROOT/bin:$PATH + go get github.com/tcnksm/ghr + ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME -prerelease -b 'Nightly release - Use caution!' `echo "v0.3-nightly-$(git rev-parse --short=7 HEAD)"` ci/ + + - store_artifacts: + path: ci/ \ No newline at end of file diff --git a/README.md b/README.md index 99668be..4d133fb 100644 --- a/README.md +++ b/README.md @@ -112,7 +112,7 @@ java -jar JWUDTool.jar -in "game_part1.wud" -decryptFile /content/Sound/.* ``` ## Compiling -`clean assembly:single package` +`mvn clean package` ## Credits Maschell diff --git a/pom.xml b/pom.xml index 0f510a4..f3870c2 100644 --- a/pom.xml +++ b/pom.xml @@ -4,40 +4,71 @@ 4.0.0 de.mas jwudtool - 0.2a + 0.3 - - 1.8 - 1.8 - + + + normal-build + + true + + + ./target + + + + ci-build + + + ci-build + true + + + + ./ci + + + + src - maven-assembly-plugin - 3.1.0 + maven-compiler-plugin + 3.7.0 - - jar-with-dependencies - - - - de.mas.jwudtool.Main - - + 1.8 + 1.8 + + + maven-assembly-plugin - make-assembly - package + make-assembly + + + + de.mas.jwudtool.Main + + + + jar-with-dependencies + + + ${jar_dir} + JWUDTool-${project.version}-nightly + + package - single + attached + jitpack.io