Linux Local Redirector #856
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: autofix.ci | |
on: | |
pull_request: | |
permissions: | |
contents: read | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
MSRV: "1.80" # Minimum Supported Rust Version | |
jobs: | |
protobuf: | |
runs-on: macos-latest | |
steps: | |
- uses: mhils/workflows/checkout@v12 | |
- run: brew install swift-protobuf | |
- run: cargo install protoc-gen-prost | |
- run: protoc --proto_path=./src/ipc/ mitmproxy_ipc.proto | |
--prost_out=./src/ipc/ | |
--prost_opt="bytes=data" | |
--swift_out=./mitmproxy-macos/redirector/ipc | |
- run: cargo fmt --all | |
- uses: autofix-ci/action@ff86a557419858bb967097bfc916833f5647fa8c | |
rustfmt: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
include: | |
- os: windows-latest | |
- os: macos-latest | |
- os: ubuntu-latest | |
steps: | |
- uses: mhils/workflows/checkout@v12 | |
- uses: ./.github/actions/setup | |
with: | |
rust-version: ${{ env.MSRV }} | |
toolchain-args: --component rustfmt --component clippy | |
# We could run clippy on mitmproxy-linux-ebpf with | |
# cargo +nightly clippy --workspace -- -C panic=abort -Zpanic_abort_tests | |
# but that means we'd use nightly clippy, which may change its behavior (and thus break CI). | |
# So we rather exempt mitmproxy-linux-ebpf from clippy lints. | |
- run: cargo clippy --fix --allow-dirty --workspace --exclude mitmproxy-linux-ebpf | |
- run: cargo fmt --all | |
- run: git checkout src/ipc/mitmproxy_ipc.rs | |
- uses: autofix-ci/action@ff86a557419858bb967097bfc916833f5647fa8c |