Exclude multicast and broadcast on WinDivert's filter #782
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: | |
rust_clippy: "1.80" # MSRV | |
jobs: | |
protobuf: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: brew install swift-protobuf | |
- run: cargo install protoc-gen-prost | |
- run: protoc --proto_path=./src/ipc/ mitmproxy_ipc.proto | |
--prost_out=./src/ipc/ | |
--swift_out=./mitmproxy-macos/redirector/ipc | |
- run: cargo fmt --all | |
- uses: autofix-ci/action@dd55f44df8f7cdb7a6bf74c78677eb8acd40cd0a | |
rustfmt: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
include: | |
- os: windows-latest | |
- os: macos-latest | |
- os: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: rustup toolchain install ${{ env.rust_clippy }} --profile minimal --component rustfmt --component clippy | |
- run: rustup default ${{ env.rust_clippy }} | |
- uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2.7.5 | |
timeout-minutes: 2 | |
continue-on-error: true | |
# PyO3 wants recent Python on Windows. | |
- uses: actions/setup-python@v5 | |
with: | |
python-version-file: .github/python-version.txt | |
- run: cargo clippy --fix --allow-dirty --workspace | |
- run: cargo fmt --all | |
- run: git checkout src/ipc/mitmproxy_ipc.rs | |
- uses: autofix-ci/action@dd55f44df8f7cdb7a6bf74c78677eb8acd40cd0a |