Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub Actions CI #2628

Merged
merged 6 commits into from Jul 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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