-
Notifications
You must be signed in to change notification settings - Fork 14
46 lines (34 loc) · 1012 Bytes
/
Copy pathrelease.yml
File metadata and controls
46 lines (34 loc) · 1012 Bytes
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
name: Create Release
on: workflow_dispatch
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
defaults:
run:
working-directory: ./source/android
steps:
- name: Checkout Source Code
uses: actions/checkout@v3
- name: Set Up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Install Rust Targets
run: rustup target add aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android
- name: Set Up Android NDK
run: $ANDROID_SDK_ROOT/tools/bin/sdkmanager --install "ndk;25.2.9519653"
- name: Set Up JDK
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- name: Build With Gradle
run: ./gradlew build
- name: Publish Packages
run: ./gradlew :android-local-vpn:publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}