Skip to content

Commit

Permalink
GitHub Actions CI (#2628)
Browse files Browse the repository at this point in the history
* Add GitHub Actions CI

Configured to attempt builds with Java 8 and 11, plus a Java 17
build that is allowed to fail (since it currently is).

* Maven: remove prerequisite config

* Remove TravisCI config

* Maven: Update project version to 3.1.0.1-SNAPSHOT

* CI: add Windows and MacOS (JDK 8 and 11 only)

* CI: Make artifact names unique
  • Loading branch information
ferdnyc committed Jul 8, 2022
1 parent ed193e0 commit 7886cf3
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 14 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/ci.yml
@@ -0,0 +1,50 @@

name: Java CI with Maven

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:

jobs:
build:
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.continue-on-error }}

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-10.15, windows-latest]
java-version: [ '8', '11' ]
continue-on-error: [false]
include:
- os: ubuntu-latest
java-version: '17'
continue-on-error: true

steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java-version }}
distribution: 'temurin'
cache: maven
- name: Build with Maven
id: maven_compile
run: mvn compile --file pom.xml
- name: Package with Maven
id: maven_package
run: mvn package --file pom.xml
- name: Stage JAR file artifact
run: mkdir staging && cp uis/target/BiglyBT.jar staging/
if: steps.maven_package.outcome == 'success'
- name: Publish artifact
if: steps.maven_package.outcome == 'success'
uses: actions/upload-artifact@v3
with:
name: BiglyBT_${{ runner.os }}_JDK_${{ matrix.java-version }}
path: staging

7 changes: 0 additions & 7 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion core/pom.xml
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>com.biglybt</groupId>
<artifactId>biglybt-parent</artifactId>
<version>2.5.0.1-SNAPSHOT</version>
<version>3.1.0.1-SNAPSHOT</version>
</parent>

<dependencies>
Expand Down
6 changes: 1 addition & 5 deletions pom.xml
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.biglybt</groupId>
<artifactId>biglybt-parent</artifactId>
<version>2.5.0.1-SNAPSHOT</version>
<version>3.1.0.1-SNAPSHOT</version>
<packaging>pom</packaging>
<name>BiglyBT - Parent</name>

Expand Down Expand Up @@ -188,10 +188,6 @@
</plugins>
</build>

<prerequisites>
<maven>3.0.9</maven>
</prerequisites>

<scm>
<connection>scm:git:git@github.com:BiglySoftware/BiglyBT.git</connection>
<developerConnection>scm:git:git@github.com:BiglySoftware/BiglyBT.git</developerConnection>
Expand Down
2 changes: 1 addition & 1 deletion uis/pom.xml
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>com.biglybt</groupId>
<artifactId>biglybt-parent</artifactId>
<version>2.5.0.1-SNAPSHOT</version>
<version>3.1.0.1-SNAPSHOT</version>
</parent>

<dependencies>
Expand Down

0 comments on commit 7886cf3

Please sign in to comment.