Skip to content

debug async

debug async #122

Workflow file for this run

name: test
on:
pull_request:
branches:
- "**"
workflow_call:
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-24.04]
rust: [stable]
profile: [dev]
name: test
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- name: deps
run: |
sudo apt install -y build-essential autoconf clang-15 flex bison pkg-config autopoint
sudo ln -s /usr/include/asm-generic /usr/include/asm
sudo rm -f /bin/clang
sudo ln -s /usr/bin/clang-15 /bin/clang
- uses: Swatinem/rust-cache@v2
- name: cargo build
run: CLANG=clang-15 cargo build --bins --examples --profile=${{ matrix.profile }} --locked --verbose
- name: cargo test
run: cargo test -p stacks --profile=${{ matrix.profile }} --locked --verbose
- name: e2e test (should run as root)
run: |
if [ "${{ matrix.profile }}" = "dev" ]; then
cd e2e && RUST_LOG="stacks=debug" cargo test --profile=${{ matrix.profile }} --locked
else
echo "Error: Profile '${{ matrix.profile }}' is not expected."
exit 1
fi
clippy:
name: lint with clippy
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: deps
run: |
sudo apt install -y build-essential autoconf clang-14 flex bison pkg-config autopoint
sudo ln -s /usr/include/asm-generic /usr/include/asm
sudo rm -f /bin/clang
sudo ln -s /usr/bin/clang-14 /bin/clang
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- uses: Swatinem/rust-cache@v2
- run: cargo clippy --locked --no-deps --all-targets --tests -- -D warnings
rustfmt:
name: lint formatting
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
- run: cargo fmt -- --check