Unverified Commit bf9e998a authored by Donny/강동윤's avatar Donny/강동윤 Committed by GitHub

Update swc & Improve CI time (#29884)

Co-authored-by: 's avatarJJ Kasper <jj@jjsweb.site>
Co-authored-by: 's avatarkdy1 <kdy1@users.noreply.github.com>
parent f530b0d3
...@@ -63,6 +63,17 @@ jobs: ...@@ -63,6 +63,17 @@ jobs:
export CXX=$(xcrun -f clang++); export CXX=$(xcrun -f clang++);
SYSROOT=$(xcrun --sdk macosx --show-sdk-path); SYSROOT=$(xcrun --sdk macosx --show-sdk-path);
export CFLAGS="-isysroot $SYSROOT -isystem $SYSROOT"; export CFLAGS="-isysroot $SYSROOT -isystem $SYSROOT";
# We use restore-key to pick latest cache.
# We will not get exact match, but doc says
# "If there are multiple partial matches for a restore key, the action returns the most recently created cache."
# So we get latest cache
- name: Cache built files
uses: actions/cache@v2
with:
path: ./packages/next/build/swc/target
key: next-swc-cargo-cache-${{ matrix.os }}--${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
next-swc-cargo-cache-${{ matrix.os }}
- name: 'Build' - name: 'Build'
if: steps.binary-cache.outputs.cache-hit != true if: steps.binary-cache.outputs.cache-hit != true
run: yarn build-native --target ${{ matrix.target }} run: yarn build-native --target ${{ matrix.target }}
......
...@@ -1612,9 +1612,9 @@ checksum = "6446ced80d6c486436db5c078dde11a9f73d42b57fb273121e160b84f63d894c" ...@@ -1612,9 +1612,9 @@ checksum = "6446ced80d6c486436db5c078dde11a9f73d42b57fb273121e160b84f63d894c"
[[package]] [[package]]
name = "swc" name = "swc"
version = "0.68.0" version = "0.68.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "db528ae495b10d365a4e46fc84a34ba79556ab9001e6524cfd7abac7da6273ef" checksum = "9f6dd80aa3787665ab1560af56722140b1a1435b56b240dc4253b57491cb3a9a"
dependencies = [ dependencies = [
"ahash", "ahash",
"anyhow", "anyhow",
...@@ -2163,9 +2163,9 @@ dependencies = [ ...@@ -2163,9 +2163,9 @@ dependencies = [
[[package]] [[package]]
name = "swc_ecma_transforms_typescript" name = "swc_ecma_transforms_typescript"
version = "0.49.0" version = "0.49.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9828b88136fc8b947d894fcf49d237b75ee80ffe7e5cb39813403ee714c02b4c" checksum = "cf92d054c7f5c4d8e26143ad04a60329afb8d7cf3111578ce0433d60be78b88f"
dependencies = [ dependencies = [
"serde", "serde",
"swc_atoms", "swc_atoms",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment