Skip to content

feat: Add chunked retrieval and optimized deduplication to veraaudit #98

feat: Add chunked retrieval and optimized deduplication to veraaudit

feat: Add chunked retrieval and optimized deduplication to veraaudit #98

Workflow file for this run

name: Build and Test
on:
pull_request:
branches: [ main ]
jobs:
build:
strategy:
matrix:
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
- os: ubuntu-latest
target: x86_64-unknown-linux-musl
- os: windows-latest
target: x86_64-pc-windows-gnu
- os: macos-latest
target: aarch64-apple-darwin
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install Linux dependencies
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y build-essential ca-certificates
- name: Install musl tools for musl target
if: matrix.target == 'x86_64-unknown-linux-musl'
run: |
sudo apt-get install -y musl-tools musl-dev
- name: Install build-essential for glibc Linux
if: matrix.target == 'x86_64-unknown-linux-gnu'
run: |
sudo apt-get update
sudo apt-get install -y build-essential libssl-dev pkg-config libc6-dev libssl3
- name: Install mingw-w64 for Windows GNU target
if: matrix.os == 'windows-latest'
run: |
choco install mingw
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt, clippy
- name: Add target
run: rustup target add ${{ matrix.target }}
- name: Cache cargo registry
uses: actions/cache@v3
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-${{ matrix.target }}-cargo-registry-${{ hashFiles('Cargo.lock') }}
- name: Cache cargo index
uses: actions/cache@v3
with:
path: ~/.cargo/git
key: ${{ runner.os }}-${{ matrix.target }}-cargo-index-${{ hashFiles('Cargo.lock') }}
- name: Cache cargo build
uses: actions/cache@v3
with:
path: target
key: ${{ runner.os }}-${{ matrix.target }}-cargo-build-target-${{ hashFiles('Cargo.lock') }}
- name: Check formatting (Linux only)
if: matrix.target == 'x86_64-unknown-linux-gnu'
run: cargo fmt --all -- --check
- name: Run clippy (Linux only)
if: matrix.target == 'x86_64-unknown-linux-gnu'
run: cargo clippy --all-targets --all-features -- -D warnings
- name: Build
run: cargo build --release --target ${{ matrix.target }}
- name: Run tests (Linux only)
if: matrix.target == 'x86_64-unknown-linux-gnu'
run: cargo test --verbose --target ${{ matrix.target }}
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: binaries-${{ matrix.target }}
path: |
target/${{ matrix.target }}/release/verascan${{ matrix.os == 'windows-latest' && '.exe' || '' }}
target/${{ matrix.target }}/release/veracmek${{ matrix.os == 'windows-latest' && '.exe' || '' }}
target/${{ matrix.target }}/release/veraaudit${{ matrix.os == 'windows-latest' && '.exe' || '' }}
README.md
retention-days: 7