Skip to content

Commit 0f6bfdb

Browse files
committed
chore: Add native library deploy workflow.
1 parent b641b56 commit 0f6bfdb

File tree

3 files changed

+41
-1
lines changed

3 files changed

+41
-1
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
pull_request:
66
branches: [master]
77

8-
# Cancel old PR builds when pushing new commits.
8+
# Cancel old builds when pushing new commits.
99
concurrency:
1010
group: build-${{ github.event.pull_request.number || github.ref }}
1111
cancel-in-progress: true

.github/workflows/deploy.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
name: deploy
3+
4+
on:
5+
push:
6+
branches: [master]
7+
pull_request:
8+
branches: [master]
9+
10+
# Cancel old builds when pushing new commits.
11+
concurrency:
12+
group: deploy-${{ github.event.pull_request.number || github.ref }}
13+
cancel-in-progress: true
14+
15+
jobs:
16+
native:
17+
name: JNI library
18+
strategy:
19+
matrix:
20+
target: [android, linux, macos, windows]
21+
include:
22+
- {target: android, arch: arm64-v8a}
23+
- {target: android, arch: armeabi-v7a}
24+
- {target: android, arch: x86_64}
25+
- {target: android, arch: x86}
26+
- {target: linux, arch: aarch64}
27+
- {target: linux, arch: x86_64}
28+
- {target: macos, arch: arm64}
29+
- {target: macos, arch: x86_64}
30+
- {target: windows, arch: x86_64}
31+
runs-on: ${{ matrix.target == 'macos' && 'macos-14' || matrix.target == 'windows' && 'windows-2022' || 'ubuntu-24.04' }}
32+
steps:
33+
- name: Checkout code
34+
uses: actions/checkout@v4
35+
- name: Build tox4j native library
36+
shell: bash
37+
run: scripts/build-native.sh ${{ matrix.target }} ${{ matrix.arch }}

scripts/build-native.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
echo "TODO:" "$@"

0 commit comments

Comments
 (0)