From 941897517a6bc43b05ceeae930ea9bee3bf154f3 Mon Sep 17 00:00:00 2001 From: Kristian Kraljic Date: Mon, 5 Feb 2024 10:51:47 +0100 Subject: [PATCH] Switch from Travis to GitHub Actions --- .github/workflows/maven.yml | 27 +++++++++++++++++++++++++++ .travis.yml | 2 -- pom.xml | 22 +++++++++++++--------- 3 files changed, 40 insertions(+), 11 deletions(-) create mode 100644 .github/workflows/maven.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml new file mode 100644 index 0000000..3e3a83d --- /dev/null +++ b/.github/workflows/maven.yml @@ -0,0 +1,27 @@ +name: Java CI with Maven + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v4 + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B package --file pom.xml + - run: mkdir staging && cp target/*.* staging && rm staging/original* && rm staging/*shaded* + - uses: actions/upload-artifact@v4 + with: + name: Package + path: staging \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index c3719aa..0000000 --- a/.travis.yml +++ /dev/null @@ -1,2 +0,0 @@ -language: java -install: mvn install -Pci-build -B -V \ No newline at end of file diff --git a/pom.xml b/pom.xml index 3dd3196..5f33d72 100644 --- a/pom.xml +++ b/pom.xml @@ -7,6 +7,10 @@ 2.3.0 JDigitalSimulator + JDigitalSimulator is a plattform independend Electronic Design Automation software entirely build in Java + + Kristian Kraljic + http://kra.lc/projects/jdigitalsimulator/ @@ -35,17 +39,17 @@ org.apache.maven.plugins maven-compiler-plugin - 3.6.1 + 3.12.1 - 1.7 - 1.7 + 8 + 8 org.apache.maven.plugins maven-shade-plugin - 3.0.0 + 3.5.1 package @@ -75,7 +79,7 @@ com.akathist.maven.plugins.launch4j launch4j-maven-plugin - 2.1.0 + 2.3.3 l4j-clui @@ -95,8 +99,8 @@ src/main/resources/lc/kra/jds/icon.ico - 1.7.0 - preferJre + %JAVA_HOME%;%PATH% + 1.8.0 -Xss4m --add-opens java.base/java.io=ALL-UNNAMED @@ -106,7 +110,7 @@ ${project.version}.0 ${project.version}.0 ${project.name} - 2017 Kristian Kraljic + 2024 Kristian Kraljic ${project.version}.0 ${project.version}.0 ${project.name} @@ -120,7 +124,7 @@ maven-assembly-plugin - 3.0.0 + 3.6.0 false