TEST #105
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: TEST | |
on: | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write # to be able to publish a GitHub release | |
issues: write # to be able to comment on released issues | |
pull-requests: write # to be able to comment on released pull requests | |
id-token: write # to enable use of OIDC | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
GH_TOKEN: ${{ secrets.MY_TOKEN }} | |
NEKO_TOKEN: ${{ secrets.NEKO_TOKEN }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Prepare | |
run: | | |
sudo apt-get -y install dos2unix apksigner | |
- name: JDK Setup | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: 17 | |
- name: Clone | |
run: | | |
git clone --depth=1 https://AnGgIt86:$NEKO_TOKEN@github.com/AnGgIt86/v2rayNG | |
- name: "Execute Gradle assemble" | |
run: | | |
cd ${{ github.workspace }}/v2rayNG | |
dos2unix ./gradlew | |
./gradlew assemble | |
- name: Sign APK | |
run: | | |
cd ${{ github.workspace }}/v2rayNG | |
apksigner sign --key platform.pk8 --cert platform.x509.pem app/build/outputs/apk/release/*arm64-v8a.apk | |
apksigner sign --key platform.pk8 --cert platform.x509.pem app/build/outputs/apk/release/*armeabi-v7a.apk | |
apksigner sign --key platform.pk8 --cert platform.x509.pem app/build/outputs/apk/release/*x86.apk | |
apksigner sign --key platform.pk8 --cert platform.x509.pem app/build/outputs/apk/release/*x86_64.apk | |
apksigner sign --key platform.pk8 --cert platform.x509.pem app/build/outputs/apk/release/*universal.apk | |
- name: arm64 | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Arm64 | |
path: ${{ github.workspace }}/v2rayNG/app/build/outputs/apk/release/*arm64-v8a.apk | |
- name: armeabi-v7a | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Armeabi-v7a | |
path: ${{ github.workspace }}/v2rayNG/app/build/outputs/apk/release/*armeabi-v7a.apk | |
- name: x86 | |
uses: actions/upload-artifact@v4 | |
with: | |
name: X86 | |
path: ${{ github.workspace }}/v2rayNG/app/build/outputs/apk/release/*x86.apk | |
- name: x86_64 | |
uses: actions/upload-artifact@v4 | |
with: | |
name: X86_64 | |
path: ${{ github.workspace }}/v2rayNG/app/build/outputs/apk/release/*x86_64.apk | |
- name: universal | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Universal | |
path: ${{ github.workspace }}/v2rayNG/app/build/outputs/apk/release/*universal.apk |