fix(runtime/web_worker): Use biased select when getting module result (#14553)

This commit is contained in:
Nayeem Rahman 2022-05-10 10:26:57 +01:00 committed by GitHub
parent 2f7f41533b
commit cb884de2e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 28 additions and 3 deletions

View file

@ -236,7 +236,7 @@ jobs:
~/.cargo/registry/index
~/.cargo/registry/cache
~/.cargo/git/db
key: 11-cargo-home-${{ matrix.os }}-${{ hashFiles('Cargo.lock') }}
key: 12-cargo-home-${{ matrix.os }}-${{ hashFiles('Cargo.lock') }}
# In main branch, always creates fresh cache
- name: Cache build output (main)
@ -252,7 +252,7 @@ jobs:
!./target/*/*.zip
!./target/*/*.tar.gz
key: |
11-cargo-target-${{ matrix.os }}-${{ matrix.profile }}-${{ github.sha }}
12-cargo-target-${{ matrix.os }}-${{ matrix.profile }}-${{ github.sha }}
# Restore cache from the latest 'main' branch build.
- name: Cache build output (PR)
@ -268,7 +268,7 @@ jobs:
!./target/*/*.tar.gz
key: never_saved
restore-keys: |
11-cargo-target-${{ matrix.os }}-${{ matrix.profile }}-
12-cargo-target-${{ matrix.os }}-${{ matrix.profile }}-
# Don't save cache after building PRs or branches other than 'main'.
- name: Skip save cache (PR)