2020-07-31 12:49:07 +03:00
|
|
|
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:
|
2020-08-03 19:33:23 +03:00
|
|
|
name: compilation
|
2020-07-31 12:49:07 +03:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
2020-08-03 19:33:23 +03:00
|
|
|
- name: Cache
|
|
|
|
uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.cargo/
|
|
|
|
key: ${{ runner.os }}-cargo-compliation
|
|
|
|
|
|
|
|
- name: Install cargo hack
|
2020-07-31 12:49:07 +03:00
|
|
|
run: |
|
2020-08-03 19:33:23 +03:00
|
|
|
cargo install cargo-hack --version 0.3.11
|
2020-07-31 12:49:07 +03:00
|
|
|
|
|
|
|
- name: Check swc_common
|
|
|
|
run: |
|
2020-08-03 19:33:23 +03:00
|
|
|
(cd common && cargo hack check --feature-powerset --no-dev-deps)
|
|
|
|
|
|
|
|
- name: Check swc_ecma_transforms
|
|
|
|
run: |
|
|
|
|
(cd ecmascript/transforms && cargo hack check --feature-powerset --no-dev-deps)
|
2020-08-12 16:18:47 +03:00
|
|
|
|
|
|
|
- name: Check swc_bundler
|
|
|
|
run: |
|
|
|
|
(cd bundler && cargo hack check --feature-powerset --no-dev-deps)
|