Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
acheong08 committed Mar 8, 2024
2 parents 5d79918 + bd2eafb commit 0dce331
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: stCarolas/setup-maven@v5
with:
maven-version: 3.9.6
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
Expand Down
64 changes: 64 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Release Build

on:
release:
types: [created]
workflow_dispatch:

permissions:
contents: write

jobs:
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Set up Maven 3.9.6
uses: stCarolas/setup-maven@v5
with:
maven-version: 3.9.6
- name: Install Dependencies (Linux)
if: runner.os == 'Linux'
run: sudo apt-get install -y build-essential automake libtool
- name: Install Dependencies (Windows)
if: runner.os == 'Windows'
uses: microsoft/setup-msbuild@v2
- name: Install Dependencies (macOS)
if: runner.os == 'macOS'
run: |
brew install automake autoconf libtool gcc
- name: Build with Maven
run: mvn clean package -B
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: Package
path: target/*.jar

release:
name: Release
needs: build
runs-on: ubuntu-latest
steps:
- name: Download Artifacts
uses: actions/download-artifact@v4
with:
name: Package
- name: Release
uses: softprops/action-gh-release@v1
with:
files: "*.jar"

0 comments on commit 0dce331

Please sign in to comment.