Skip to content

Commit

Permalink
more build experiments
Browse files Browse the repository at this point in the history
  • Loading branch information
rvullriede committed Sep 8, 2024
1 parent fdc3168 commit ea47f2f
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 29 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/build-on-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: build-on-push

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: setup-jdk
uses: actions/setup-java@v4
with:
java-version: 21
distribution: 'temurin'
cache: maven
- name: maven-build
run: mvn --batch-mode --update-snapshots package
23 changes: 0 additions & 23 deletions .github/workflows/maven.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,26 @@ jobs:
version: [ a, b, c ]

runs-on: ${{ matrix.os }}

steps:
- name: Checkout
- uses: actions/checkout@v4
- name: Set up JDK
- name: checkout-repo
uses: actions/checkout@v4

- name: setup-jdk
uses: actions/setup-java@v4
with:
java-version: 21
distribution: 'temurin'
cache: maven
- name: build package
cache: 'maven'
server-id: github
server-username: MAVEN_USERNAME

server-password: MAVEN_PASSWORD
- name: build-and-package
run: mvn --batch-mode -Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} mvn -Pnative-jpackage clean package jpackage:jpackage

- uses: actions/upload-artifact@v4
- name: build-and-package
uses: actions/upload-artifact@v4
with:
name: log-gazer-${{ matrix.os }}
path: target/dist/*

0 comments on commit ea47f2f

Please sign in to comment.