mirror of
https://github.com/serai-dex/serai.git
synced 2024-12-22 19:49:22 +00:00
macOS clippy (#526)
* Specifically use bash as a shell to try and get rustup to work on Windows * Use bash for the call to echo * Add macOS clippy * Debug why git diff failed * Restore macos-latest to matrix * Allow whitespace before the fact 0 lines were modified * Add LC_ALL env variable to grep * Replace usage of -P with -e
This commit is contained in:
parent
745075af6e
commit
89788be034
2 changed files with 5 additions and 2 deletions
|
@ -23,6 +23,8 @@ runs:
|
||||||
sudo apt install -y ca-certificates protobuf-compiler
|
sudo apt install -y ca-certificates protobuf-compiler
|
||||||
elif [ "$RUNNER_OS" == "Windows" ]; then
|
elif [ "$RUNNER_OS" == "Windows" ]; then
|
||||||
choco install protoc
|
choco install protoc
|
||||||
|
elif [ "$RUNNER_OS" == "macOS" ]; then
|
||||||
|
brew install protobuf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Install solc
|
- name: Install solc
|
||||||
|
|
5
.github/workflows/lint.yml
vendored
5
.github/workflows/lint.yml
vendored
|
@ -11,7 +11,7 @@ jobs:
|
||||||
clippy:
|
clippy:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, windows-latest]
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
@ -37,7 +37,8 @@ jobs:
|
||||||
# The above clippy run will cause it to be updated, so checking there's
|
# The above clippy run will cause it to be updated, so checking there's
|
||||||
# no differences present now performs the desired check
|
# no differences present now performs the desired check
|
||||||
- name: Verify lockfile
|
- name: Verify lockfile
|
||||||
run: git diff | wc -l | grep -x "0"
|
shell: bash
|
||||||
|
run: git diff | wc -l | LC_ALL="en_US.utf8" grep -x -e "^[ ]*0"
|
||||||
|
|
||||||
deny:
|
deny:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
Loading…
Reference in a new issue