ci: adapt to nix native runner
This commit is contained in:
parent
7aea0095e9
commit
7b1f3cca04
5 changed files with 6 additions and 90 deletions
13
.github/workflows/rustfmt.yml
vendored
13
.github/workflows/rustfmt.yml
vendored
|
|
@ -12,17 +12,8 @@ env:
|
|||
|
||||
jobs:
|
||||
rustfmt:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: native
|
||||
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
|
||||
run: nix develop .#dev --command cargo fmt -- --check
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue