Disable CI
This commit is contained in:
parent
1fa4554290
commit
e635b782d2
1 changed files with 0 additions and 73 deletions
|
|
@ -1,73 +0,0 @@
|
|||
name: GBCI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ["main"]
|
||||
pull_request:
|
||||
branches: ["main"]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: gbo
|
||||
|
||||
steps:
|
||||
- name: Disable SSL verification (temporary)
|
||||
run: git config --global http.sslVerify false
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Checkout botlib dependency
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: GeneralBots/botlib
|
||||
path: ../botlib
|
||||
|
||||
- name: Cache Cargo registry
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
target
|
||||
key: ${{ runner.os }}-cargo-botdevice-${{ hashFiles('**/Cargo.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-cargo-botdevice-
|
||||
|
||||
- name: Install Rust
|
||||
uses: msrd0/rust-toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
|
||||
- name: Install Android SDK and NDK
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y android-sdk android-ndk
|
||||
|
||||
- name: Add Android targets
|
||||
run: |
|
||||
rustup target add aarch64-linux-android
|
||||
rustup target add armv7-linux-androideabi
|
||||
rustup target add x86_64-linux-android
|
||||
rustup target add i686-linux-android
|
||||
|
||||
- name: Install Tauri CLI
|
||||
run: |
|
||||
if ! command -v cargo-tauri &> /dev/null; then
|
||||
cargo install tauri-cli
|
||||
fi
|
||||
|
||||
- name: Compile ROM
|
||||
run: |
|
||||
chmod +x ./rom/install.sh
|
||||
./rom/install.sh
|
||||
|
||||
- name: Build Android APK
|
||||
run: |
|
||||
cargo tauri android build
|
||||
|
||||
- name: Deploy ROM artifacts
|
||||
run: |
|
||||
sudo mkdir -p /opt/gbo/bin/botdevice/rom
|
||||
sudo cp -r ./rom/gsi/* /opt/gbo/bin/botdevice/rom/
|
||||
sudo cp ./target/aarch64-linux-android/release/*.apk /opt/gbo/bin/botdevice/ || true
|
||||
sudo chmod -R 755 /opt/gbo/bin/botdevice
|
||||
Loading…
Add table
Reference in a new issue