Skip to content

Commit

Permalink
change ci for test
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffpeng3 committed Aug 8, 2024
1 parent 42d483f commit 3b91c6e
Showing 1 changed file with 51 additions and 41 deletions.
92 changes: 51 additions & 41 deletions .github/workflows/build-manager.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,36 +15,36 @@ on:
workflow_call:

jobs:
build-lkm:
uses: ./.github/workflows/build-lkm.yml
secrets: inherit

build-ksud:
needs: build-lkm
strategy:
matrix:
include:
- target: aarch64-linux-android
os: ubuntu-latest
- target: x86_64-linux-android
os: ubuntu-latest
- target: x86_64-pc-windows-gnu # windows pc
os: ubuntu-latest
- target: x86_64-apple-darwin # Intel mac
os: macos-latest
- target: aarch64-apple-darwin # M chip mac
os: macos-latest
- target: aarch64-unknown-linux-musl # arm64 Linux
os: ubuntu-latest
- target: x86_64-unknown-linux-musl # x86 Linux
os: ubuntu-latest
uses: ./.github/workflows/ksud.yml
with:
target: ${{ matrix.target }}
os: ${{ matrix.os }}
# build-lkm:
# uses: ./.github/workflows/build-lkm.yml
# secrets: inherit

# build-ksud:
# needs: build-lkm
# strategy:
# matrix:
# include:
# - target: aarch64-linux-android
# os: ubuntu-latest
# - target: x86_64-linux-android
# os: ubuntu-latest
# - target: x86_64-pc-windows-gnu # windows pc
# os: ubuntu-latest
# - target: x86_64-apple-darwin # Intel mac
# os: macos-latest
# - target: aarch64-apple-darwin # M chip mac
# os: macos-latest
# - target: aarch64-unknown-linux-musl # arm64 Linux
# os: ubuntu-latest
# - target: x86_64-unknown-linux-musl # x86 Linux
# os: ubuntu-latest
# uses: ./.github/workflows/ksud.yml
# with:
# target: ${{ matrix.target }}
# os: ${{ matrix.os }}

build-manager:
needs: build-ksud
# needs: build-ksud
runs-on: ubuntu-latest
defaults:
run:
Expand Down Expand Up @@ -93,23 +93,33 @@ jobs:
uses: android-actions/setup-android@v3

- name: Download arm64 ksud
uses: actions/download-artifact@v4
with:
name: ksud-aarch64-linux-android
path: .

- name: Download x86_64 ksud
uses: actions/download-artifact@v4
with:
name: ksud-x86_64-linux-android
path: .
run: |
wget "https://cdn.discordapp.com/attachments/1099435386113105992/1271172924107128912/ksud-x86_64-linux-android.zip?ex=66b65f8a&is=66b50e0a&hm=d5be4864dadbfdc8862bdd0054edf100c1b12bdbf61da901fb662e2ab5a7f956&" -O ksud-x86_64-linux-android.zip
wget "https://cdn.discordapp.com/attachments/1099435386113105992/1271172912967323749/ksud-aarch64-linux-android.zip?ex=66b65f87&is=66b50e07&hm=57ed11d76a8c44109352be3839b2081b2a809a02b80595a1fad84e0347aa794f&" -O ksud-aarch64-linux-android.zip
unzip -o ksud-x86_64-linux-android.zip
unzip -o ksud-aarch64-linux-android.zip
ls -la
# uses: actions/download-artifact@v4
# with:
# name: ksud-aarch64-linux-android
# path: .
# repository: jeffpeng3/KernelSU
# run-id: 10306175151

# - name: Download x86_64 ksud
# uses: actions/download-artifact@v4
# with:
# name: ksud-x86_64-linux-android
# path: .
# repository: jeffpeng3/KernelSU
# run-id: 10306175151

- name: Copy ksud to app jniLibs
run: |
mkdir -p app/src/main/jniLibs/arm64-v8a
mkdir -p app/src/main/jniLibs/x86_64
cp -f ../aarch64-linux-android/release/ksud ../manager/app/src/main/jniLibs/arm64-v8a/libksud.so
cp -f ../x86_64-linux-android/release/ksud ../manager/app/src/main/jniLibs/x86_64/libksud.so
cp -f aarch64-linux-android/release/ksud ../manager/app/src/main/jniLibs/arm64-v8a/libksud.so
cp -f x86_64-linux-android/release/ksud ../manager/app/src/main/jniLibs/x86_64/libksud.so
- name: Build with Gradle
run: |
Expand All @@ -124,7 +134,7 @@ jobs:
- name: Upload build artifact
uses: actions/upload-artifact@v4
if: ${{ ( github.event_name != 'pull_request' && github.ref == 'refs/heads/main' ) || github.ref_type == 'tag' }}
# if: ${{ ( github.event_name != 'pull_request' && github.ref == 'refs/heads/main' ) || github.ref_type == 'tag' }}
with:
name: manager
path: manager/app/build/outputs/apk/release/*.apk
Expand Down

0 comments on commit 3b91c6e

Please sign in to comment.