-
Notifications
You must be signed in to change notification settings - Fork 7
52 lines (50 loc) · 1.4 KB
/
actions.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: apt install
run: |
echo y | sudo apt-get install doxygen cmake ninja-build libasound2-dev libjack-jackd2-0
- name: stupid NDK setup workaround for GitHub Actions
run: sudo mkdir -p /usr/local/lib/android/sdk/ndk && sudo chmod 777 /usr/local/lib/android/sdk/ndk
- name: build
run: |
./build-rtmidi.sh
./gradlew --warning-mode all build publishToMavenLocal
- name: upload build failure logs
if: failure()
uses: actions/upload-artifact@v2
with:
name: test-failure-logs
path: |
ktmidi/build/reports/
ktmidi-jvm-desktop/build/reports/
ktmidi/*.log
ktmidi-native-ext/*.log
ktmidi-jvm-desktop/*.log
- name: upload artifact
if: success()
uses: actions/upload-artifact@v2
with:
name: ktmidi-artifacts
path: |
ktmidi/build/libs/*.jar
ktmidi/build/outputs/aar/*.aar
ktmidi-native-ext/build/bin
ktmidi-jvm-desktop/build/libs/*.jar