Skip to content

vm: Implement vm function pretty printing #1988

vm: Implement vm function pretty printing

vm: Implement vm function pretty printing #1988

Workflow file for this run

name: Rust
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
CARGO_TERM_COLOR: always
# Link against libc++ which is required when LLVM is built with libc++
RUSTFLAGS: "-C link-arg=-lc++ -C link-arg=-lc++abi"
jobs:
build_and_test:
runs-on: ["${{ matrix.distro }}"]
name: Build on ${{ matrix.distro }} ${{ matrix.arch }}
strategy:
matrix:
include:
- arch: x64
distro: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Cache LLVM
id: cache-llvm
uses: actions/cache@v4
with:
path: ./llvm
key: llvm-20
- name: Install LLVM
uses: KyleMayes/[email protected]
with:
version: "20.1.8"
cached: ${{ steps.cache-llvm.outputs.cache-hit }}
- name: Install Rust nightly
run: |
rustup toolchain install nightly
rustup component add clippy --toolchain nightly
rustup component add rustfmt --toolchain nightly
rustup default nightly
- name: Dependency caching
uses: Swatinem/rust-cache@v2
- name: LLVM location
# @@Dumbness: we need to install `libtinfo5` because of:
# - https://github.com/hash-org/hashc/actions/runs/9634436024/job/26570084536
run: |
wget http://security.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.1_amd64.deb
sudo apt install -y ./libtinfo5_6.3-2ubuntu0.1_amd64.deb
# Install libc++ which is required when LLVM is built with libc++
sudo apt-get update
sudo apt-get install -y libc++-dev libc++abi-dev
echo $LLVM_PATH
$LLVM_PATH/bin/llvm-config --version
- name: Run tests
run: "LLVM_SYS_201_PREFIX=$LLVM_PATH cargo test --all --verbose"
- name: Run clippy
run: "LLVM_SYS_201_PREFIX=$LLVM_PATH cargo clippy --all -- -D warnings"
- name: Check formatting
run: "cargo fmt --all -- --check"