mirror of
https://github.com/swc-project/swc.git
synced 2024-11-24 02:06:08 +03:00
chore(ci): Make CI faster
This commit is contained in:
parent
786d016174
commit
55250e4428
15
.github/workflows/bot.yml
vendored
15
.github/workflows/bot.yml
vendored
@ -55,10 +55,17 @@ jobs:
|
||||
run: |
|
||||
yarn
|
||||
|
||||
- name: Install required binaries
|
||||
run: |
|
||||
cargo install cargo-mono
|
||||
cargo install git-cliff
|
||||
- name: Install cargo-mono
|
||||
uses: baptiste0928/cargo-install@v1.1.0
|
||||
with:
|
||||
crate: cargo-mono
|
||||
version: "0.3.1"
|
||||
|
||||
- name: Install git-cliff
|
||||
uses: baptiste0928/cargo-install@v1.1.0
|
||||
with:
|
||||
crate: git-cliff
|
||||
version: "0.6.0"
|
||||
|
||||
- name: Update changelog
|
||||
run: |
|
||||
|
8
.github/workflows/compilation.yml
vendored
8
.github/workflows/compilation.yml
vendored
@ -36,9 +36,11 @@ jobs:
|
||||
~/.cargo/
|
||||
key: ${{ runner.os }}-cargo-compiliation
|
||||
|
||||
- name: Install cargo hack
|
||||
run: |
|
||||
cargo install cargo-hack --version 0.5.7
|
||||
- name: Install cargo-hack
|
||||
uses: baptiste0928/cargo-install@v1.1.0
|
||||
with:
|
||||
crate: cargo-hack
|
||||
version: "0.5.7"
|
||||
|
||||
- name: Check swc_common
|
||||
run: |
|
||||
|
66
.github/workflows/crate-version-management.yml
vendored
66
.github/workflows/crate-version-management.yml
vendored
@ -1,66 +0,0 @@
|
||||
name: "Crate version management"
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
crate:
|
||||
description: "Crate to bump version"
|
||||
required: true
|
||||
breaking:
|
||||
description: "`1` if this is a breaking change"
|
||||
required: true
|
||||
default: "0"
|
||||
|
||||
jobs:
|
||||
bump:
|
||||
name: Bump version
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
issues: write
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Cache
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/bin/
|
||||
~/.cargo/registry/index/
|
||||
~/.cargo/registry/cache/
|
||||
~/.cargo/git/db/
|
||||
target/
|
||||
key: cargo-bump-version
|
||||
|
||||
- name: Install cargo mono
|
||||
run: |
|
||||
cargo install cargo-mono --vers 0.2.4
|
||||
|
||||
- name: Bump version
|
||||
run: |
|
||||
if [ "${{ github.event.inputs.breaking }}" == "1" ]; then
|
||||
cargo mono bump ${{ github.event.inputs.crate }} --breaking
|
||||
else
|
||||
cargo mono bump ${{ github.event.inputs.crate }}
|
||||
fi
|
||||
|
||||
- name: Update lockfile
|
||||
run: |
|
||||
cargo metadata
|
||||
|
||||
- name: Configure git
|
||||
run: |
|
||||
git config --global user.email "kdy1@users.noreply.github.com"
|
||||
git config --global user.name "swc[bot]"
|
||||
|
||||
- name: Add files
|
||||
run: |
|
||||
git add -A
|
||||
|
||||
- name: Commit files
|
||||
run: |
|
||||
git commit -m 'chore: Bump version'
|
||||
|
||||
- name: Push
|
||||
run: |
|
||||
git push
|
Loading…
Reference in New Issue
Block a user