Skip to content

Commit

Permalink
fix(ci): Speed up (swc-project#1494)
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Mar 25, 2021
1 parent da62c73 commit 0351a47
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 2 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/cargo.yml
Expand Up @@ -22,8 +22,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install rustfmt
run: rustup component add rustfmt

# We explicitly do this to cache properly.
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
components: rustfmt

- name: Run cargo fmt
run: cargo fmt --all -- --check

Expand All @@ -39,6 +45,13 @@ jobs:
- windows-2019
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:
Expand Down Expand Up @@ -113,6 +126,12 @@ jobs:
- uses: actions/checkout@v2

# We explicitly do this to cache properly.
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal

- uses: actions/setup-node@v2
with:
node-version: 14
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/compilation.yml
Expand Up @@ -23,6 +23,12 @@ jobs:
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:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/integration.yml
Expand Up @@ -12,6 +12,12 @@ jobs:
steps:
- uses: actions/checkout@v2

# We explicitly do this to cache properly.
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal

- uses: actions/setup-node@v2
with:
node-version: 14
Expand Down

0 comments on commit 0351a47

Please sign in to comment.