Skip to content

Macos redirector rust side #361

Macos redirector rust side

Macos redirector rust side #361

Workflow file for this run

name: autofix.ci
on:
pull_request:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
rust_clippy: 1.65 # MSRV
jobs:
autofix:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: autofix-${{ hashFiles('**/Cargo.lock') }}
- run: rustup toolchain install ${{ env.rust_clippy }} --profile minimal --component rustfmt --component clippy
- run: rustup default ${{ env.rust_clippy }}
- uses: actions/setup-python@v4
with:
python-version-file: .github/python-version.txt
- if: runner.os == 'Windows'
# workaround for https://github.com/rust-lang/cargo/issues/9096
run: cargo build --package windows-redirector
- run: cargo clippy --fix --workspace --allow-dirty --exclude macos-certificate-truster
- run: cargo fmt --all
- uses: autofix-ci/action@8caa572fd27b0019a65e4c695447089c8d3138b9