|
21 | 21 | with: |
22 | 22 | distribution: "temurin" |
23 | 23 | java-version: 17 |
| 24 | + - name: Install Rust |
| 25 | + uses: dtolnay/rust-toolchain@stable |
| 26 | + with: |
| 27 | + toolchain: stable |
| 28 | + - name: Cache Rust dependencies |
| 29 | + uses: actions/cache@v4 |
| 30 | + with: |
| 31 | + path: | |
| 32 | + ~/.cargo/bin/ |
| 33 | + ~/.cargo/registry/index/ |
| 34 | + ~/.cargo/registry/cache/ |
| 35 | + ~/.cargo/git/db/ |
| 36 | + file_operations/target/ |
| 37 | + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} |
| 38 | + restore-keys: | |
| 39 | + ${{ runner.os }}-cargo- |
| 40 | + - name: Setup Rust for Android |
| 41 | + run: | |
| 42 | + cd file_operations |
| 43 | + chmod +x setup_rust_android.sh |
| 44 | + ./setup_rust_android.sh |
| 45 | + - name: Verify Rust setup |
| 46 | + run: | |
| 47 | + cd file_operations |
| 48 | + echo "🔍 Verifying Rust Android targets..." |
| 49 | + rustup target list --installed | grep android || echo "No Android targets found" |
| 50 | + echo "🔍 Verifying cargo configuration..." |
| 51 | + if [ -f .cargo/config.toml ]; then |
| 52 | + echo "✅ .cargo/config.toml exists" |
| 53 | + else |
| 54 | + echo "❌ .cargo/config.toml missing" |
| 55 | + exit 1 |
| 56 | + fi |
24 | 57 | - name: Check formatting using spotless |
25 | 58 | uses: gradle/actions/setup-gradle@v3 |
26 | 59 | with: |
|
36 | 69 | with: |
37 | 70 | distribution: "temurin" |
38 | 71 | java-version: 17 |
| 72 | + - name: Install Rust |
| 73 | + uses: dtolnay/rust-toolchain@stable |
| 74 | + with: |
| 75 | + toolchain: stable |
| 76 | + - name: Cache Rust dependencies |
| 77 | + uses: actions/cache@v4 |
| 78 | + with: |
| 79 | + path: | |
| 80 | + ~/.cargo/bin/ |
| 81 | + ~/.cargo/registry/index/ |
| 82 | + ~/.cargo/registry/cache/ |
| 83 | + ~/.cargo/git/db/ |
| 84 | + file_operations/target/ |
| 85 | + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} |
| 86 | + restore-keys: | |
| 87 | + ${{ runner.os }}-cargo- |
| 88 | + - name: Setup Rust for Android |
| 89 | + run: | |
| 90 | + cd file_operations |
| 91 | + chmod +x setup_rust_android.sh |
| 92 | + ./setup_rust_android.sh |
| 93 | + - name: Verify Rust setup |
| 94 | + run: | |
| 95 | + cd file_operations |
| 96 | + echo "🔍 Verifying Rust Android targets..." |
| 97 | + rustup target list --installed | grep android || echo "No Android targets found" |
| 98 | + echo "🔍 Verifying cargo configuration..." |
| 99 | + if [ -f .cargo/config.toml ]; then |
| 100 | + echo "✅ .cargo/config.toml exists" |
| 101 | + else |
| 102 | + echo "❌ .cargo/config.toml missing" |
| 103 | + exit 1 |
| 104 | + fi |
39 | 105 | - name: Build with Gradle |
40 | 106 | uses: gradle/actions/setup-gradle@v3 |
41 | 107 | with: |
|
0 commit comments