Skip to content

Update comment on benchmark failure (#42) #127

Update comment on benchmark failure (#42)

Update comment on benchmark failure (#42) #127

Workflow file for this run

name: Rust
on:
push:
branches: ["main"]
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
container:
image: rockylinux/rockylinux:9
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- uses: Swatinem/rust-cache@v2
- name: Install build tools
run: dnf install -y jq gcc openssl-devel
- name: Build
run: cargo build --release
- name: Check style
run: cargo clippy
- name: Run tests
run: cargo test
- name: Get artifact
id: artifact
run: |
BIN_PATH=$(cargo metadata --no-deps --format-version=1 | jq -r '[.target_directory, "release", .packages[].targets[].name] | join("/")')
echo "BIN_PATH=$BIN_PATH" >> $GITHUB_OUTPUT
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: Binary
path: ${{ steps.artifact.outputs.BIN_PATH }}