Bumps the actions group with 2 updates: [actions/checkout](https://github.com/actions/checkout) and [actions/download-artifact](https://github.com/actions/download-artifact). Updates `actions/checkout` from 4 to 5 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v5) Updates `actions/download-artifact` from 4 to 5 - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](https://github.com/actions/download-artifact/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions - dependency-name: actions/download-artifact dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions ... Signed-off-by: dependabot[bot] <support@github.com>
51 lines
1.3 KiB
YAML
51 lines
1.3 KiB
YAML
name: Sanitize
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
RUSTFLAGS: -D warnings
|
|
|
|
on:
|
|
workflow_call:
|
|
|
|
jobs:
|
|
check-undefined-behaviour:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 20
|
|
env:
|
|
TREE_SITTER: ${{ github.workspace }}/target/release/tree-sitter
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v5
|
|
|
|
- name: Install UBSAN library
|
|
run: sudo apt-get update -y && sudo apt-get install -y libubsan1
|
|
|
|
- name: Set up Rust
|
|
uses: actions-rust-lang/setup-rust-toolchain@v1
|
|
|
|
- name: Build project
|
|
run: cargo build --release
|
|
|
|
- name: Cache fixtures
|
|
uses: ./.github/actions/cache
|
|
id: cache
|
|
|
|
- name: Fetch fixtures
|
|
run: cargo xtask fetch-fixtures
|
|
|
|
- name: Generate fixtures
|
|
if: ${{ steps.cache.outputs.cache-hit != 'true' }}
|
|
run: cargo xtask generate-fixtures
|
|
|
|
- name: Run main tests with undefined behaviour sanitizer (UBSAN)
|
|
run: cargo test -- --test-threads 1
|
|
env:
|
|
CFLAGS: -fsanitize=undefined
|
|
RUSTFLAGS: ${{ env.RUSTFLAGS }} -lubsan
|
|
|
|
- name: Run main tests with address sanitizer (ASAN)
|
|
run: cargo test -- --test-threads 1
|
|
env:
|
|
ASAN_OPTIONS: verify_asan_link_order=0
|
|
CFLAGS: -fsanitize=address
|
|
RUSTFLAGS: ${{ env.RUSTFLAGS }} -lasan --cfg sanitizing
|