Skip to content

dynamic module: new ip restriction module #1

dynamic module: new ip restriction module

dynamic module: new ip restriction module #1

Workflow file for this run

name: Commit
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
dynamic_rust:
name: Dynamic Rust module lint/test/build on (${{ matrix.platform.arch }})
runs-on: ${{ matrix.platform.os }}
strategy:
fail-fast: false
matrix:
platform:
- os: ubuntu-24.04
arch: amd64
- os: ubuntu-24.04-arm
arch: arm64
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Cache Cargo registry
uses: actions/cache@v4
with:
path: ~/.cargo/registry
key: ${{ matrix.platform.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ matrix.platform.os }}-cargo-registry-
- name: Cache Cargo git index
uses: actions/cache@v4
with:
path: ~/.cargo/git
key: ${{ matrix.platform.os }}-cargo-git-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ matrix.platform.os }}-cargo-git-
- name: Set up Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: clippy, rustfmt
- name: Check format
run: cargo fmt -- --check
- name: Run Clippy linter
run: cargo clippy -- -D warnings
- name: Build module
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose