Skip to content

Commit

Permalink
refactor(bindings): Make @swc/core a subpackage (#8625)
Browse files Browse the repository at this point in the history
**Description:**

This is for consistency and future extensions.
  • Loading branch information
kdy1 committed May 18, 2024
1 parent edca394 commit f960d52
Show file tree
Hide file tree
Showing 174 changed files with 6,334 additions and 7,005 deletions.
34 changes: 27 additions & 7 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ jobs:
# toolchain: stable
# override: true

- run: corepack enable

- uses: actions/setup-node@v4
with:
node-version: "18"
Expand All @@ -154,6 +156,7 @@ jobs:
- name: Install node dependencies
shell: bash
run: |
corepack enable
yarn
# Ensure that all components are compilable.
Expand All @@ -168,6 +171,9 @@ jobs:
steps:
- uses: actions/checkout@v4

- shell: bash
run: corepack enable

# We explicitly do this to cache properly.
- uses: actions-rs/toolchain@v1
with:
Expand All @@ -191,6 +197,7 @@ jobs:
- name: Install node dependencies
shell: bash
run: |
corepack enable
yarn
- name: Build
Expand Down Expand Up @@ -589,6 +596,8 @@ jobs:
with:
submodules: true

- run: corepack enable

# Source map format
- uses: actions/setup-node@v4
with:
Expand All @@ -613,6 +622,7 @@ jobs:
- name: Install node dependencies
shell: bash
run: |
corepack enable
yarn
# I don't want to think deeply about this
yarn global add jest@27 mocha || \
Expand All @@ -633,7 +643,7 @@ jobs:
- name: Verify dependencies
shell: bash
run: |
jest --version && mocha --version
yarn jest --version && yarn mocha --version
- name: Configure execution cache
shell: bash
Expand Down Expand Up @@ -725,8 +735,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Corepack
shell: bash
- shell: bash
run: corepack enable

# We explicitly do this to cache properly.
Expand All @@ -735,7 +744,7 @@ jobs:

- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 18
cache: "yarn"

- name: Patch
Expand All @@ -761,7 +770,14 @@ jobs:
corepack enable
yarn
- name: Build
working-directory: packages/core
run: |
yarn build:dev
- name: Test
working-directory: packages/core
run: |
yarn test
integration-test:
Expand All @@ -772,8 +788,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Corepack
shell: bash
- shell: bash
run: corepack enable

- uses: actions/setup-node@v4
Expand Down Expand Up @@ -878,14 +893,19 @@ jobs:
with:
submodules: true

- shell: bash
run: corepack enable

- uses: actions/setup-node@v4
with:
node-version: "18"
cache: "yarn"

- name: Install node dependencies
shell: bash
run: yarn
run: |
corepack enable
yarn
- name: Print rustup toolchain version
shell: bash
Expand Down

0 comments on commit f960d52

Please sign in to comment.