Skip to content

Commit

Permalink
Switch from Travis to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kristian committed Feb 5, 2024
1 parent 6e54106 commit cbeb40f
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 11 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
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@v4
with:
java-version: '11'
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Set Release version env variable
run: |
echo "RELEASE_VERSION=$(mvn help:evaluate '-Dexpression=project.version' -q -DforceStdout)" >> $env:GITHUB_ENV
- run: mkdir staging && cp target/*.* staging && rm staging/original* && rm staging/*shaded*
- uses: actions/upload-artifact@v4
with:
name: Package
path: staging
- name: Release
uses: softprops/action-gh-release@v1
with:
name: JDigitalSimulator v$env:RELEASE_VERSION
tag_name: $env:RELEASE_VERSION
draft: true
files: staging/*
fail_on_unmatched_files: true
2 changes: 0 additions & 2 deletions .travis.yml

This file was deleted.

22 changes: 13 additions & 9 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
<version>2.3.0</version>

<name>JDigitalSimulator</name>
<description>JDigitalSimulator is a plattform independend Electronic Design Automation software entirely build in Java</description>
<organization>
<name>Kristian Kraljic</name>
</organization>
<url>http://kra.lc/projects/jdigitalsimulator/</url>

<developers>
Expand Down Expand Up @@ -35,17 +39,17 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.6.1</version>
<version>3.12.1</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
<source>8</source>
<target>8</target>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.0.0</version>
<version>3.5.1</version>
<executions>
<execution>
<phase>package</phase>
Expand Down Expand Up @@ -75,7 +79,7 @@
<plugin>
<groupId>com.akathist.maven.plugins.launch4j</groupId>
<artifactId>launch4j-maven-plugin</artifactId>
<version>2.1.0</version>
<version>2.3.3</version>
<executions>
<execution>
<id>l4j-clui</id>
Expand All @@ -95,8 +99,8 @@
</classPath>
<icon>src/main/resources/lc/kra/jds/icon.ico</icon>
<jre>
<minVersion>1.7.0</minVersion>
<jdkPreference>preferJre</jdkPreference>
<path>%JAVA_HOME%;%PATH%</path>
<minVersion>1.8.0</minVersion>
<opts>
<opt>-Xss4m</opt>
<opt>--add-opens java.base/java.io=ALL-UNNAMED</opt>
Expand All @@ -106,7 +110,7 @@
<fileVersion>${project.version}.0</fileVersion>
<txtFileVersion>${project.version}.0</txtFileVersion>
<fileDescription>${project.name}</fileDescription>
<copyright>2017 Kristian Kraljic</copyright>
<copyright>2024 Kristian Kraljic</copyright>
<productVersion>${project.version}.0</productVersion>
<txtProductVersion>${project.version}.0</txtProductVersion>
<productName>${project.name}</productName>
Expand All @@ -120,7 +124,7 @@

<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.0.0</version>
<version>3.6.0</version>
<configuration>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
Expand Down

0 comments on commit cbeb40f

Please sign in to comment.