Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions .github/workflows/bench.yml

This file was deleted.

65 changes: 0 additions & 65 deletions .github/workflows/sanitize.yml

This file was deleted.

134 changes: 2 additions & 132 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,76 +13,6 @@ env:
CARGO_TERM_COLOR: always

jobs:
build:
strategy:
matrix:
build: [linux, macos, windows]
include:
- build: linux
os: ubuntu-latest
- build: macos
os: macos-latest
- build: windows
os: windows-latest
extension: .exe

runs-on: ${{matrix.os}}

steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Build
env:
RUSTFLAGS: -D warnings
uses: actions-rs/cargo@v1
with:
command: build
args: --release --all --exclude mla-fuzz-afl --verbose
- name: Run tests
run: cargo test --all --exclude mla-fuzz-afl --release --verbose
- name: Upload resulting 'mlar'
uses: actions/upload-artifact@v1
with:
name: ${{ matrix.build }}
path: ./target/release/mlar${{ matrix.extension }}

long-tests:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Run long tests
run: cd mla && cargo test --release -- --ignored

all-features:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Run long tests
run: cargo test --all-features --all --exclude mla-fuzz-afl --exclude mla-bindings-c --release

test-bindings-c-cpp-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Run C bindings tests on Linux
working-directory: bindings/C/tests/linux-gcc-g++/
run: make CC=gcc
- name: Run C bindings tests on Linux
working-directory: bindings/C/tests/linux-gcc-g++/
run: make CC=g++

test-bindings-c-cpp-windows:
strategy:
Expand All @@ -107,7 +37,8 @@ jobs:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
toolchain: 1.70.0
default: true
target: ${{ matrix.target }}
- uses: microsoft/[email protected]
- name: Compile C/CPP bindings test program for Windows
Expand All @@ -117,64 +48,3 @@ jobs:
working-directory: bindings/C/tests/windows-msvc/
run: ./${{ matrix.msvc_platform }}/${{ matrix.version }}/mla-bindings-test.exe

afl-build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Install dependencies
run: sudo apt-get install llvm
- name: Install cargo-afl binary crate
uses: actions-rs/[email protected]
with:
crate: afl
version: latest
use-tool-cache: true
- name: Test AFL build
env:
RUSTFLAGS: -D warnings
run: cargo afl build

fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt
- name: Check format
run: cargo fmt --all -- --check

audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Security audit
uses: actions-rs/audit-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}

clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: clippy
- name: Install dependencies
run: sudo apt-get install llvm
- name: Install cargo-afl binary crate
uses: actions-rs/[email protected]
with:
crate: afl
version: latest
use-tool-cache: true
- uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-targets -- -D warnings