This repository has been archived by the owner on Sep 7, 2024. It is now read-only.
Use snd_midi_event_encode() to send MIDI events. SysEx was not working. #53
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
# ONLY FOR NON-RELEASES | |
- name: build | |
if: ${{ !startsWith(github.ref, 'refs/tags/') }} | |
run: | | |
./build-native.sh | |
./gradlew --warning-mode all build | |
# ONLY FOR NEW RELEASE TAGS | |
- name: publish | |
if: startsWith(github.ref, 'refs/tags/') | |
run: | | |
./build-native.sh | |
./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@v3 | |
with: | |
name: alsakt-artifacts | |
path: | | |
alsakt-javacpp/build/libs/*.jar | |
alsakt/build/libs/*.jar | |