Skip to content
Merged

opt #17

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 36 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -30,30 +28,62 @@ 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"
export ANDROID_NDK_ROOT="$ANDROID_NDK_HOME"
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

Binary file removed module/oukaro
Binary file not shown.
Loading