chore(ci): Make CI faster

This commit is contained in:
Donny/강동윤 2022-02-16 14:12:22 +09:00
parent 786d016174
commit 55250e4428
3 changed files with 16 additions and 73 deletions

View File

@ -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: |

View File

@ -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: |

View File

@ -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