From 75ff2148895b60c17441ca4e80dd9787e0e478dd Mon Sep 17 00:00:00 2001 From: Brent Pappas Date: Tue, 16 Jul 2024 09:43:38 -0400 Subject: [PATCH] gh: try running script again --- .github/workflows/temp.yml | 80 ++++++++++++++++++++++---------------- 1 file changed, 47 insertions(+), 33 deletions(-) diff --git a/.github/workflows/temp.yml b/.github/workflows/temp.yml index 9d92edc038..f2cb735a31 100644 --- a/.github/workflows/temp.yml +++ b/.github/workflows/temp.yml @@ -89,36 +89,50 @@ jobs: ghcr.io/trailofbits/vast-ubuntu-${{ matrix.image-version }}-llvm-${{ matrix.llvm-version }}-dev:latest steps: - - name: Fetch VAST artifact - uses: actions/download-artifact@v4 - with: - name: VAST - - - name: Unpack VAST - run: mkdir vast && tar -xf VAST-* -C vast --strip-components=1 - - - name: Export vast binaries - run: echo "${PWD}/vast/bin/" >> $GITHUB_PATH - - - name: Install benchmark dependencies - # Not sure which exact clang or LLVM packages are necessary - run: | - apt-get update - apt-get -y install git fakeroot build-essential \ - ncurses-dev xz-utils libssl-dev bc flex libelf-dev bison \ - bear \ - clang-18 clang-tools-18 \ - lld-18 \ - llvm-18 llvm-18-tools llvm-18-linker-tools llvm-18-runtime - - - name: Clone the Linux kernel and build it to create compilation database - run: | - git clone --depth=1 https://github.com/torvalds/linux.git linux - cd linux - bear -- make defconfig - - - name: Print contents of Linux dir - run: | - ls linux - ls ${PWD}/linux - pwd + - name: Fetch VAST artifact + uses: actions/download-artifact@v4 + with: + name: VAST + + - name: Unpack VAST + run: mkdir vast && tar -xf VAST-* -C vast --strip-components=1 + + - name: Export vast binaries + run: echo "${PWD}/vast/bin/" >> $GITHUB_PATH + + # Not sure which exact clang or LLVM packages are necessary + - name: Install benchmark dependencies + run: | + apt-get update + apt-get -y install git fakeroot build-essential \ + ncurses-dev xz-utils libssl-dev bc flex libelf-dev bison \ + bear \ + clang-18 clang-tools-18 \ + lld-18 \ + llvm-18 llvm-18-tools llvm-18-linker-tools llvm-18-runtime + + - name: Clone the Linux kernel and build it to create compilation database + run: | + git clone --depth=1 https://github.com/torvalds/linux.git linux + cd linux + bear -- make defconfig + + - name: Clone vast benchmark directory + uses: actions/checkout@v4 + with: + repository: trailofbits/vast-benchmarks + sparse-checkout: benchmarks/linux_kernel + ref: main + path: . + fetch-depth: 1 + + - name: Run benchmarks + run: > + python3 ${PWD}/benchmarks/linux_kernel/run_vast_benchmark.py + vast-front + ${PWD}/linux/compile_commands.json + ${PWD}/vast_linux_kernel_mlir_with_unsup/ + --num_processes=$(nproc) + --vast_option="-xc" + --vast_option="-vast-emit-mlir=${{ matrix.vast-target }}" + > vast_linux_kernel_times_hl_with_unsup.tsv