mirror of
https://github.com/swc-project/swc.git
synced 2024-12-29 16:42:28 +03:00
017392aa5b
swc_node_bundler: - Add cargo features for versioned apis. node-swc: - Add cargo features for versioned apis.
92 lines
2.6 KiB
YAML
92 lines
2.6 KiB
YAML
name: Compilation
|
|
|
|
on: [push, pull_request]
|
|
#on:
|
|
# push:
|
|
# # Ignore commits created by bors
|
|
# branches-ignore:
|
|
# - 'staging'
|
|
# - 'trying'
|
|
# pull_request:
|
|
# branches-ignore:
|
|
# - 'staging'
|
|
# - 'trying'
|
|
|
|
env:
|
|
CARGO_INCREMENTAL: 0
|
|
CI: "1"
|
|
|
|
jobs:
|
|
check:
|
|
name: compilation
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
# We explicitly do this to cache properly.
|
|
- name: Install Rust
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: minimal
|
|
|
|
- name: Cache
|
|
uses: actions/cache@v2
|
|
with:
|
|
path: |
|
|
~/.cargo/
|
|
key: ${{ runner.os }}-cargo-compiliation
|
|
|
|
- name: Install cargo hack
|
|
run: |
|
|
cargo install cargo-hack --version 0.5.7
|
|
|
|
- name: Check swc_common
|
|
run: |
|
|
(cd crates/swc_common && cargo hack check --feature-powerset --no-dev-deps)
|
|
|
|
- name: Check swc_ecma_ast
|
|
run: |
|
|
(cd crates/swc_ecma_ast && cargo hack check --feature-powerset --no-dev-deps)
|
|
|
|
- name: Check swc_ecma_loader
|
|
run: |
|
|
(cd crates/swc_ecma_loader && cargo hack check --feature-powerset --no-dev-deps)
|
|
|
|
- name: Check swc_ecma_transforms
|
|
run: |
|
|
(cd crates/swc_ecma_transforms && cargo hack check --feature-powerset --no-dev-deps)
|
|
|
|
- name: Check swc_ecma_transforms_base
|
|
run: |
|
|
(cd crates/swc_ecma_transforms_base && cargo hack check --feature-powerset --no-dev-deps)
|
|
|
|
- name: Check swc_ecma_transforms_compat
|
|
run: |
|
|
(cd crates/swc_ecma_transforms_compat && cargo hack check --feature-powerset --no-dev-deps)
|
|
|
|
- name: Check swc_ecma_transforms_optimization
|
|
run: |
|
|
(cd crates/swc_ecma_transforms_optimization && cargo hack check --feature-powerset --no-dev-deps)
|
|
|
|
- name: Check swc_ecma_utils
|
|
run: |
|
|
(cd crates/swc_ecma_utils && cargo hack check --feature-powerset --no-dev-deps)
|
|
|
|
- name: Check swc_bundler
|
|
run: |
|
|
(cd crates/swc_bundler && cargo hack check --feature-powerset --no-dev-deps)
|
|
|
|
- name: Check node_swc
|
|
run: |
|
|
(cd crates/node && cargo check)
|
|
(cd crates/node && cargo check --no-default-features --features swc_v2)
|
|
|
|
- name: Check swc_node_bundler
|
|
run: |
|
|
(cd crates/swc_node_bundler && cargo check)
|
|
(cd crates/swc_node_bundler && cargo check --no-default-features --features swc_v2)
|
|
|
|
- name: Check swc
|
|
run: |
|
|
(cd crates/swc && cargo hack check --feature-powerset --no-dev-deps)
|