Skip to content

feat: setup semantic release and crates.io publishing ( PROOF-609 ) #12

feat: setup semantic release and crates.io publishing ( PROOF-609 )

feat: setup semantic release and crates.io publishing ( PROOF-609 ) #12

Workflow file for this run

name: Test-Check-Lint
on:
workflow_call:
pull_request:
types:
- opened
- synchronize
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
format-code:
name: Check code
runs-on: self-hosted
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Run check
run: docker run --rm -v "$PWD":/src -w /src --gpus all --privileged spaceandtimelabs/blitzar:12.2.0-cuda-1.71.1-rust-0 /bin/bash -c "PYTHONDONTWRITEBYTECODE=1 ./tools/code_format/check_format.py check"
test-cpp:
name: C++ code
runs-on: self-hosted
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Run cpp tests
run: docker run --rm -e TEST_TMPDIR=/root/.cache_bazel -v $HOME/.cache_bazel_test:/root/.cache_bazel -v "$PWD":/src:ro -w /src --gpus all --privileged spaceandtimelabs/blitzar:12.2.0-cuda-1.71.1-rust-0 /bin/bash -c "cp -av /src/ /src_tmp/; cd /src_tmp; bazel test //..."
test-cpp-asan:
name: C++ code with address sanitizer
runs-on: self-hosted
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Run cpp-asan tests
run: docker run --rm -e TEST_TMPDIR=/root/.cache_bazel -v $HOME/.cache_bazel_test_asan:/root/.cache_bazel -v "$PWD":/src:ro -w /src --gpus all --privileged spaceandtimelabs/blitzar:12.2.0-cuda-1.71.1-rust-0 /bin/bash -c "cp -av /src/ /src_tmp/; cd /src_tmp; bazel test --config=asan //..."
test-rust:
name: Rust Sys Crate
runs-on: self-hosted
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Run rust tests
run: docker run --rm -e TEST_TMPDIR=/root/.cache_bazel -v $HOME/.cache_bazel_test_rust:/root/.cache_bazel -v "$PWD":/src:ro -w /src --gpus all --privileged spaceandtimelabs/blitzar:12.2.0-cuda-1.71.1-rust-0 /bin/bash -c "cp -av /src/ /src_tmp/; cd /src_tmp; source /root/.cargo/env; /root/.cargo/bin/cargo test --manifest-path rust/blitzar-sys/Cargo.toml; /root/.cargo/bin/cargo test --manifest-path rust/tests/Cargo.toml"