Skip to content
This repository has been archived by the owner on Sep 7, 2024. It is now read-only.

forgot to bump alsakt.jar version. #42

forgot to bump alsakt.jar version.

forgot to bump alsakt.jar version. #42

Workflow file for this run

name: build dist
on:
push:
pull_request:
jobs:
linux-build:
name: build on linux
runs-on: ubuntu-20.04
steps:
- name: checkout
uses: actions/checkout@v1
with:
submodules: recursive
- name: apt update
run: |
sudo apt-get update
- name: set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: temurin
# ONLY FOR NEW RELEASE TAGS
- name: setup gpg necessities
if: startsWith(github.ref, 'refs/tags/')
run: sudo bash -c "echo '$GPG_KEY_CONTENTS' | base64 -d > $WORKSPACE/'$SIGNING_SECRET_KEY_RING_FILE'"
env:
WORKSPACE: ${{ github.workspace }}
GPG_KEY_CONTENTS: ${{ secrets.GPG_KEY_CONTENTS }}
SIGNING_SECRET_KEY_RING_FILE: ${{ secrets.SIGNING_SECRET_KEY_RING_FILE }}
# ONLY FOR NEW RELEASE TAGS
- name: rewrite */build.gradle to require signing
if: startsWith(github.ref, 'refs/tags/')
run: |
sed -i "s/signing {}/signing { sign(publishing.publications) }/" */build.gradle
- name: apt install
run: |
echo y | sudo apt-get install doxygen cmake ninja-build
- name: build
run:
./build-native.sh
./gradlew --warning-mode all build
# ONLY FOR NEW RELEASE TAGS
- name: publish
if: startsWith(github.ref, 'refs/tags/')
run: ./gradlew --warning-mode all publish
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
SIGNING_SECRET_KEY_RING_FILE: ${{ format('{0}/{1}', github.workspace, secrets.SIGNING_SECRET_KEY_RING_FILE) }}
- name: upload artifact
if: success()
uses: actions/upload-artifact@v2
with:
name: alsakt-artifacts
path: |
alsakt-javacpp/build/libs/*.jar
alsakt/build/libs/*.jar