|
| 1 | +name: Setup QEMU librasan environment |
| 2 | +description: Sets up the QEMU librasan environment |
| 3 | +runs: |
| 4 | + using: composite |
| 5 | + steps: |
| 6 | + - name: Enable i386 |
| 7 | + shell: bash |
| 8 | + run: sudo dpkg --add-architecture i386 |
| 9 | + - name: Install QEMU deps |
| 10 | + shell: bash |
| 11 | + run: | |
| 12 | + sudo apt-get update && \ |
| 13 | + DEBIAN_FRONTEND=noninteractive \ |
| 14 | + sudo apt-get install -y \ |
| 15 | + build-essential \ |
| 16 | + clang-18 \ |
| 17 | + clang++-18 \ |
| 18 | + cmake \ |
| 19 | + curl \ |
| 20 | + g++-aarch64-linux-gnu \ |
| 21 | + g++-arm-linux-gnueabi \ |
| 22 | + g++-i686-linux-gnu \ |
| 23 | + g++-mipsel-linux-gnu \ |
| 24 | + g++-powerpc-linux-gnu \ |
| 25 | + gcc-aarch64-linux-gnu \ |
| 26 | + gcc-arm-linux-gnueabi \ |
| 27 | + gcc-i686-linux-gnu \ |
| 28 | + gcc-mipsel-linux-gnu \ |
| 29 | + gcc-powerpc-linux-gnu \ |
| 30 | + gdb \ |
| 31 | + gdb-multiarch \ |
| 32 | + git \ |
| 33 | + gnupg \ |
| 34 | + libc6-dev:i386 \ |
| 35 | + libclang-dev \ |
| 36 | + libgcc-13-dev:i386 \ |
| 37 | + libglib2.0-dev \ |
| 38 | + lsb-release \ |
| 39 | + ninja-build \ |
| 40 | + python3 \ |
| 41 | + python3-pip \ |
| 42 | + python3-venv \ |
| 43 | + qemu-user \ |
| 44 | + software-properties-common \ |
| 45 | + wget |
| 46 | + - uses: dtolnay/rust-toolchain@nightly |
| 47 | + - name: install just |
| 48 | + uses: extractions/setup-just@v2 |
| 49 | + with: |
| 50 | + just-version: 1.39.0 |
| 51 | + - name: Install cargo-binstall |
| 52 | + shell: bash |
| 53 | + run: | |
| 54 | + curl -L --proto '=https' --tlsv1.2 -sSf \ |
| 55 | + https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | \ |
| 56 | + bash |
| 57 | + - name: Install nextest |
| 58 | + shell: bash |
| 59 | + run: | |
| 60 | + cargo binstall --no-confirm cargo-nextest |
| 61 | + - name: Install Rust Targets |
| 62 | + shell: bash |
| 63 | + run: | |
| 64 | + rustup target add armv7-unknown-linux-gnueabi && \ |
| 65 | + rustup target add aarch64-unknown-linux-gnu && \ |
| 66 | + rustup target add i686-unknown-linux-gnu && \ |
| 67 | + rustup target add powerpc-unknown-linux-gnu |
| 68 | + - uses: actions/checkout@v4 |
| 69 | + with: |
| 70 | + submodules: true |
| 71 | + fetch-depth: 0 |
| 72 | + - uses: Swatinem/rust-cache@v2 |
| 73 | + with: { shared-key: "${{ runner.os }}-shared-fuzzer-cache" } |
0 commit comments