Skip to content

Commit

Permalink
Bump Rust version to 1.76 (stable) to fix WASM issues (#939)
Browse files Browse the repository at this point in the history
- Bump Rust to `v1.76`.
- Bump UniFFi to `v0.26.1` to be compatible.
- Bump `speculoos` dependency since it became incompatible.
- Remove AVD cache from the Android CI, reduce the AVD data partition size to 3GB.
  • Loading branch information
jmartinesp committed Feb 29, 2024
1 parent 36402e2 commit ea5e3b9
Show file tree
Hide file tree
Showing 22 changed files with 184 additions and 337 deletions.
25 changes: 1 addition & 24 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,30 +61,6 @@ jobs:
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
- name: AVD cache
uses: actions/cache@v3
id: avd-cache
with:
path: |
~/.android/avd/*
~/.android/adb*
key: avd-${{ matrix.api-level }}

- name: Create AVD and generate snapshot for caching
if: steps.avd-cache.outputs.cache-hit != 'true'
uses: reactivecircus/android-emulator-runner@v2
with:
working-directory: platforms/android
api-level: ${{ matrix.api-level }}
profile: ${{ env.DEVICE }}
arch: ${{ env.ARCH }}
force-avd-creation: false
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: true
enable-hw-keyboard: true
disk-size: 3g
script: echo "Generated AVD snapshot for caching."

- name: Run all tests with coverage
uses: reactivecircus/android-emulator-runner@v2
with:
Expand All @@ -96,6 +72,7 @@ jobs:
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: true
enable-hw-keyboard: true
disk-size: 3G
script: |
chmod +x scripts/ci_test.sh
scripts/ci_test.sh
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: 1.71
toolchain: 1.76
profile: minimal
override: true

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: 1.71
toolchain: 1.76
profile: minimal
override: true

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Set Version
run: rustup default 1.71
run: rustup default 1.76
- name: Set Component
run: rustup component add rustfmt clippy
- name: Format
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Set Version
run: rustup default 1.71
run: rustup default 1.76
- name: Install `wasm-pack`
run: cargo install wasm-pack
- name: Test the `wysiwyg` crate
Expand Down

0 comments on commit ea5e3b9

Please sign in to comment.