|
33 | 33 | rustup toolchain install nightly-2022-10-29 --no-self-update --profile=minimal
|
34 | 34 | rustup default nightly-2022-10-29
|
35 | 35 |
|
| 36 | + - name: Install build deps |
| 37 | + uses: ./.github/actions/deps-install |
| 38 | + with: |
| 39 | + deps: ('protoc') |
| 40 | + |
36 | 41 | - name: Calculate commit hash for PR commit
|
37 | 42 | if: github.event_name == 'pull_request'
|
38 | 43 | run: echo "COMMIT_HASH=$(git rev-parse --short=7 ${{ github.event.pull_request.head.sha }})" >> $GITHUB_ENV
|
|
94 | 99 | run: |
|
95 | 100 | rustup toolchain install nightly-2022-10-29 --no-self-update --profile=minimal
|
96 | 101 | rustup default nightly-2022-10-29
|
| 102 | + rustup target add x86_64-apple-darwin |
| 103 | +
|
| 104 | + - name: Install build deps |
| 105 | + uses: ./.github/actions/deps-install |
| 106 | + with: |
| 107 | + deps: ('protoc') |
97 | 108 |
|
98 | 109 | - name: Calculate commit hash for PR commit
|
99 | 110 | if: github.event_name == 'pull_request'
|
@@ -145,6 +156,11 @@ jobs:
|
145 | 156 | rustup toolchain install nightly-2022-10-29 --no-self-update --profile=minimal
|
146 | 157 | rustup default nightly-2022-10-29
|
147 | 158 |
|
| 159 | + - name: Install build deps |
| 160 | + uses: ./.github/actions/deps-install |
| 161 | + with: |
| 162 | + deps: ('protoc') |
| 163 | + |
148 | 164 | - name: Calculate commit hash for PR commit
|
149 | 165 | if: github.event_name == 'pull_request'
|
150 | 166 | run: echo "COMMIT_HASH=$(git rev-parse --short=7 ${{ github.event.pull_request.head.sha }})" >> $Env:GITHUB_ENV
|
@@ -194,8 +210,14 @@ jobs:
|
194 | 210 | - uses: actions/checkout@v3
|
195 | 211 | - name: Install toolchain
|
196 | 212 | run: |
|
197 |
| - rustup toolchain install nightly-2022-10-29 --no-self-update --profile=minimal |
198 |
| - rustup default nightly-2022-10-29 |
| 213 | + rustup toolchain install nightly-2022-10-29-x86_64-apple-darwin --no-self-update --profile=minimal |
| 214 | + rustup default nightly-2022-10-29-x86_64-apple-darwin |
| 215 | + rustup target add x86_64-apple-darwin |
| 216 | +
|
| 217 | + - name: Install build deps |
| 218 | + uses: ./.github/actions/deps-install |
| 219 | + with: |
| 220 | + deps: ('protoc') |
199 | 221 |
|
200 | 222 | - name: Calculate commit hash for PR commit
|
201 | 223 | if: github.event_name == 'pull_request'
|
@@ -252,6 +274,11 @@ jobs:
|
252 | 274 | echo "/usr/bin" >> $GITHUB_PATH
|
253 | 275 | echo "/root/.cargo/bin" >> $GITHUB_PATH
|
254 | 276 |
|
| 277 | + - name: Install build deps |
| 278 | + uses: ./.github/actions/deps-install |
| 279 | + with: |
| 280 | + deps: ('protoc') |
| 281 | + |
255 | 282 | - name: Install toolchain
|
256 | 283 | run: |
|
257 | 284 | rustup toolchain install nightly-2022-10-29 --no-self-update --profile=minimal
|
@@ -312,6 +339,11 @@ jobs:
|
312 | 339 | rustup default nightly-2022-10-29
|
313 | 340 | rustup target add aarch64-apple-ios
|
314 | 341 |
|
| 342 | + - name: Install build deps |
| 343 | + uses: ./.github/actions/deps-install |
| 344 | + with: |
| 345 | + deps: ('protoc') |
| 346 | + |
315 | 347 | - name: Calculate commit hash for PR commit
|
316 | 348 | if: github.event_name == 'pull_request'
|
317 | 349 | run: echo "COMMIT_HASH=$(git rev-parse --short=7 ${{ github.event.pull_request.head.sha }})" >> $GITHUB_ENV
|
@@ -373,6 +405,11 @@ jobs:
|
373 | 405 | rustup default nightly-2022-10-29
|
374 | 406 | rustup target add aarch64-linux-android
|
375 | 407 |
|
| 408 | + - name: Install build deps |
| 409 | + uses: ./.github/actions/deps-install |
| 410 | + with: |
| 411 | + deps: ('protoc') |
| 412 | + |
376 | 413 | - name: Setup NDK
|
377 | 414 | run: ./scripts/ci/android-ndk.sh x86 23
|
378 | 415 |
|
@@ -402,7 +439,7 @@ jobs:
|
402 | 439 | run: |
|
403 | 440 | NAME="mm2_$COMMIT_HASH-android-aarch64.zip"
|
404 | 441 | mv target/aarch64-linux-android/release/libmm2lib.a target/aarch64-linux-android/release/libmm2.a
|
405 |
| - zip $NAME target/aarch64-linux-android/release/libmm2.a -j |
| 442 | + zip $NAME target/aarch64-linux-android/release/libmm2.a -j |
406 | 443 | mkdir $BRANCH_NAME
|
407 | 444 | mv $NAME ./$BRANCH_NAME/
|
408 | 445 |
|
@@ -439,6 +476,11 @@ jobs:
|
439 | 476 | rustup default nightly-2022-10-29
|
440 | 477 | rustup target add armv7-linux-androideabi
|
441 | 478 |
|
| 479 | + - name: Install build deps |
| 480 | + uses: ./.github/actions/deps-install |
| 481 | + with: |
| 482 | + deps: ('protoc') |
| 483 | + |
442 | 484 | - name: Setup NDK
|
443 | 485 | run: ./scripts/ci/android-ndk.sh x86 23
|
444 | 486 |
|
@@ -468,7 +510,7 @@ jobs:
|
468 | 510 | run: |
|
469 | 511 | NAME="mm2_$COMMIT_HASH-android-armv7.zip"
|
470 | 512 | mv target/armv7-linux-androideabi/release/libmm2lib.a target/armv7-linux-androideabi/release/libmm2.a
|
471 |
| - zip $NAME target/armv7-linux-androideabi/release/libmm2.a -j |
| 513 | + zip $NAME target/armv7-linux-androideabi/release/libmm2.a -j |
472 | 514 | mkdir $BRANCH_NAME
|
473 | 515 | mv $NAME ./$BRANCH_NAME/
|
474 | 516 |
|
|
0 commit comments