Skip to content

Commit 2bdf6e9

Browse files
authored
Merge pull request #4530 from VishnuSanal/release/4.0
2 parents a1882c6 + 50968ca commit 2bdf6e9

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/android-main.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,39 @@ jobs:
115115
with:
116116
distribution: "temurin"
117117
java-version: 17
118+
- name: Install Rust
119+
uses: dtolnay/rust-toolchain@stable
120+
with:
121+
toolchain: stable
122+
- name: Cache Rust dependencies
123+
uses: actions/cache@v4
124+
with:
125+
path: |
126+
~/.cargo/bin/
127+
~/.cargo/registry/index/
128+
~/.cargo/registry/cache/
129+
~/.cargo/git/db/
130+
file_operations/target/
131+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
132+
restore-keys: |
133+
${{ runner.os }}-cargo-
134+
- name: Setup Rust for Android
135+
run: |
136+
cd file_operations
137+
chmod +x setup_rust_android.sh
138+
./setup_rust_android.sh
139+
- name: Verify Rust setup
140+
run: |
141+
cd file_operations
142+
echo "🔍 Verifying Rust Android targets..."
143+
rustup target list --installed | grep android || echo "No Android targets found"
144+
echo "🔍 Verifying cargo configuration..."
145+
if [ -f .cargo/config.toml ]; then
146+
echo "✅ .cargo/config.toml exists"
147+
else
148+
echo "❌ .cargo/config.toml missing"
149+
exit 1
150+
fi
118151
- name: Enable KVM
119152
run: |
120153
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules

0 commit comments

Comments
 (0)