infra: update ci scripts
This commit is contained in:
parent
8517df1a38
commit
c56ec14345
4 changed files with 46 additions and 4 deletions
27
.github/workflows/rustfmt.yml
vendored
Normal file
27
.github/workflows/rustfmt.yml
vendored
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
name: rustfmt
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
jobs:
|
||||
rustfmt:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Show env
|
||||
run: |
|
||||
uname -a
|
||||
ldd --version
|
||||
- name: Install
|
||||
run: |
|
||||
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly
|
||||
rustup toolchain install nightly --allow-downgrade -c rustfmt
|
||||
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
|
||||
- name: Check
|
||||
run: cargo +nightly fmt -- --check
|
||||
Loading…
Add table
Add a link
Reference in a new issue