mirror of
https://github.com/serai-dex/serai.git
synced 2025-01-18 16:55:16 +00:00
Windows Clippy (#525)
* Add windows clippy * Adjust build-dependencies for Linux/Windows * Specifically use bash as a shell to try and get rustup to work on Windows * Use bash for the call to echo
This commit is contained in:
parent
cc75b52a43
commit
05219c3ce8
2 changed files with 16 additions and 3 deletions
11
.github/actions/build-dependencies/action.yml
vendored
11
.github/actions/build-dependencies/action.yml
vendored
|
@ -20,15 +20,22 @@ runs:
|
||||||
sudo apt autoremove -y
|
sudo apt autoremove -y
|
||||||
sudo apt clean
|
sudo apt clean
|
||||||
docker system prune -a --volumes
|
docker system prune -a --volumes
|
||||||
|
if: runner.os == 'Linux'
|
||||||
|
|
||||||
- name: Install apt dependencies
|
- name: Install dependencies
|
||||||
shell: bash
|
shell: bash
|
||||||
run: sudo apt install -y ca-certificates
|
run: |
|
||||||
|
if [ "$RUNNER_OS" == "Linux" ]; then
|
||||||
|
sudo apt install -y ca-certificates
|
||||||
|
elif [ "$RUNNER_OS" == "Windows" ]; then
|
||||||
|
choco install protoc
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Install Protobuf
|
- name: Install Protobuf
|
||||||
uses: arduino/setup-protoc@a8b67ba40b37d35169e222f3bb352603327985b6
|
uses: arduino/setup-protoc@a8b67ba40b37d35169e222f3bb352603327985b6
|
||||||
with:
|
with:
|
||||||
repo-token: ${{ inputs.github-token }}
|
repo-token: ${{ inputs.github-token }}
|
||||||
|
if: runner.os == 'Linux'
|
||||||
|
|
||||||
- name: Install solc
|
- name: Install solc
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
8
.github/workflows/lint.yml
vendored
8
.github/workflows/lint.yml
vendored
|
@ -9,12 +9,17 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
clippy:
|
clippy:
|
||||||
runs-on: ubuntu-latest
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest, windows-latest]
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac
|
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac
|
||||||
|
|
||||||
- name: Get nightly version to use
|
- name: Get nightly version to use
|
||||||
id: nightly
|
id: nightly
|
||||||
|
shell: bash
|
||||||
run: echo "version=$(cat .github/nightly-version)" >> $GITHUB_OUTPUT
|
run: echo "version=$(cat .github/nightly-version)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Build Dependencies
|
- name: Build Dependencies
|
||||||
|
@ -60,6 +65,7 @@ jobs:
|
||||||
|
|
||||||
- name: Get nightly version to use
|
- name: Get nightly version to use
|
||||||
id: nightly
|
id: nightly
|
||||||
|
shell: bash
|
||||||
run: echo "version=$(cat .github/nightly-version)" >> $GITHUB_OUTPUT
|
run: echo "version=$(cat .github/nightly-version)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Install nightly rust
|
- name: Install nightly rust
|
||||||
|
|
Loading…
Reference in a new issue