-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (52 loc) · 1.55 KB
/
Copy pathrelease.yml
File metadata and controls
56 lines (52 loc) · 1.55 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
name: Release
on:
push:
tags: ["v*"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: aarch64-linux-android
- uses: nttld/setup-ndk@v1
id: setup-ndk
with:
ndk-version: r27c
- name: Install cargo-ndk
run: cargo install cargo-ndk
- name: Build
run: cargo ndk -t arm64-v8a build --release
env:
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}
- name: Package
run: |
VERSION=${GITHUB_REF_NAME}
tar -czf vproc-${VERSION}-aarch64-linux-android.tar.gz \
-C target/aarch64-linux-android/release libvproc.so
- uses: actions/upload-artifact@v4
with:
name: release
path: "*.tar.gz"
release:
needs: build
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/download-artifact@v4
with:
name: release
- uses: softprops/action-gh-release@v2
with:
files: "*.tar.gz"
generate_release_notes: true
- name: Notify hermux
continue-on-error: true
run: |
curl -f -X POST \
-H "Authorization: token ${{ secrets.HERMUX_DISPATCH_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/Bahtya/hermux/dispatches \
-d "{\"event_type\":\"vproc-release\",\"client_payload\":{\"version\":\"${GITHUB_REF_NAME}\"}}"