forked from xioxin/lab_sound_bridge
-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (60 loc) · 1.93 KB
/
test.yml
File metadata and controls
63 lines (60 loc) · 1.93 KB
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
53
54
55
56
57
58
59
60
61
62
63
name: Test Build
on: [push, pull_request]
# on:
# push:
# tags:
# - '*'
jobs:
build_and_upload:
name: Build and upload
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
artifact_name: libTauBridge_android_arm64-v8a.so
script: build_android.sh arm64-v8a
- os: ubuntu-latest
artifact_name: libTauBridge_android_armeabi-v7a.so
script: build_android.sh armeabi-v7a
- os: ubuntu-latest
artifact_name: libTauBridge_android_x86_64.so
script: build_android.sh x86_64
- os: ubuntu-latest
artifact_name: libTauBridge_android_x86.so
script: build_android.sh x86
- os: macos-latest
artifact_name: TauBridge_ios.tar.gz
script: build_ios.sh
- os: ubuntu-latest
artifact_name: libTauBridge_linux_x64.so
script: build_linux.sh
# - os: macos-11
# artifact_name: TauBridge_macos_arm64.tar.gz
# script: build_mac.sh
- os: macos-latest
artifact_name: TauBridge_macos_x64.tar.gz
script: build_mac.sh
- os: windows-latest
artifact_name: TauBridge_windows_x64.dll
script: build_windows.sh
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: nttld/setup-ndk@v1
id: setup-ndk
if: matrix.os == 'ubuntu-latest'
with:
ndk-version: r21e
- name: Build
run: bash tools/${{ matrix.script }}
env:
MACOS_CERTIFICATE: ${{ secrets.MACOS_CERTIFICATE }}
MACOS_CERTIFICATE_PWD: ${{ secrets.MACOS_CERTIFICATE_PWD }}
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}
- uses: actions/upload-artifact@v2
with:
name: ${{ matrix.artifact_name }}
path: ${{ matrix.artifact_name }}