Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielcoderX committed Aug 10, 2024
1 parent 1789dd5 commit 9fa9319
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,39 +41,31 @@ jobs:
ndk-version: r26b
link-to-sdk: true

- name: Install Gomobile and Build native parts
run: |
for d in $ANDROID_NDK_HOME/../26*; do
ANDROID_NDK_HOME=$d
done
cd app/libs
go run golang.org/x/mobile/cmd/gomobile init
go run golang.org/x/mobile/cmd/gomobile bind -ldflags="-w -s" -target=android -androidapi=21 -o=tun2socks.aar .
cd ../..
- name: Change wrapper permissions
run: chmod +x ./gradlew

- name: Build Tun2Socks AAR
run: ./gradlew buildTun2SocksAar

# Run Build Project
- name: Build gradle project
run: ./gradlew build

# Build APKs
- name: Build Release APK
run: |
./gradlew assembleRelease
run: ./gradlew assembleRelease

# Upload build aar to Artifacts
- name: Upload build aar to Artifacts
uses: actions/upload-artifact@v4
with:
name: "tun2socks"
path: app/libs/*.aar
path: app/libs/tun2socks.aar

# Upload APK artifact
- name: Upload files to Artifacts
uses: actions/upload-artifact@v4
with:
name: oblivion-${{ github.sha }}-unsigned.apk
path: |
app/build/outputs/apk/release/*.apk
app/build/outputs/apk/release/*.apk

0 comments on commit 9fa9319

Please sign in to comment.