diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9e0ab5a..b20b5d2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,11 +17,9 @@ env: jobs: build: runs-on: ubuntu-latest - steps: - name: Checkout code uses: actions/checkout@v4 - - name: Setup NDK run: | ndk_url=$(wget -qO- https://github.com/android/ndk/releases/latest \ @@ -30,19 +28,16 @@ jobs: wget -O ndk.zip "$ndk_url" -nv unzip -q ndk.zip -d "$HOME" mv "$HOME/android-ndk-"* "$HOME/ndk" - - name: Setup Rust toolchains run: | rustup default nightly rustup target add aarch64-linux-android rustup component add rust-src - - name: Install build dependencies run: | sudo apt-get update -qq sudo apt-get install -y gcc-multilib cargo install --locked cargo-ndk - - name: Build run: | export ANDROID_NDK_HOME="$HOME/ndk" @@ -50,10 +45,45 @@ jobs: cd oukaro cargo ndk -t arm64-v8a build --release cp target/aarch64-linux-android/release/oukaro ../module/ - - name: Upload build artifacts uses: actions/upload-artifact@v4 with: name: oukaromanager-module path: module/ retention-days: 30 + build-orkmng: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Setup NDK + run: | + ndk_url=$(wget -qO- https://github.com/android/ndk/releases/latest \ + | grep -oP 'href="\Khttps://dl.google.com/android/repository/android-ndk-[^"]*-linux.zip' \ + | head -n1) + wget -O ndk.zip "$ndk_url" -nv + unzip -q ndk.zip -d "$HOME" + mv "$HOME/android-ndk-"* "$HOME/ndk" + - name: Setup Rust toolchains + run: | + rustup default nightly + rustup target add aarch64-linux-android + rustup component add rust-src + - name: Install build dependencies + run: | + sudo apt-get update -qq + sudo apt-get install -y gcc-multilib + cargo install --locked cargo-ndk + - name: Build + run: | + export ANDROID_NDK_HOME="$HOME/ndk" + export ANDROID_NDK_ROOT="$ANDROID_NDK_HOME" + cd orkmng + cargo ndk -t arm64-v8a build --release + - name: Upload build artifacts + uses: actions/upload-artifact@v4 + with: + name: oukaromanager-module + path: target/aarch64-linux-android/release/orkmng + retention-days: 30 + \ No newline at end of file diff --git a/module/oukaro b/module/oukaro deleted file mode 100755 index 6e7f493..0000000 Binary files a/module/oukaro and /dev/null differ