Skip to content

Commit

Permalink
gh: try running script again
Browse files Browse the repository at this point in the history
  • Loading branch information
PappasBrent committed Jul 16, 2024
1 parent 5c0d1e4 commit 75ff214
Showing 1 changed file with 47 additions and 33 deletions.
80 changes: 47 additions & 33 deletions .github/workflows/temp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 75ff214

Please sign in to comment.