Skip to content

Upload artifact

Upload artifact #13

Workflow file for this run

name: Test
on:
push:
branches:
- main
jobs:
test:
name: Test PyLLVMPass
runs-on: ubuntu-latest
steps:
- name: "Checkout repository"
uses: actions/checkout@v4
- name: "Install rust"
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: "Install llvm-18"
run: |
wget https://apt.llvm.org/llvm.sh
chmod u+x llvm.sh
sudo ./llvm.sh 18
sudo ln -s /lib/x86_64-linux-gnu/libLLVM-18.so /lib/x86_64-linux-gnu/libLLVM.so
- name: "Install python deps"
run: |
pip install pytest llvmcpy
# Initialize llvmcpy
LLVM_CONFIG=llvm-config-18 python -c "import llvmcpy.llvm as cllvm"
- name: "Build"
run: |
cargo build
- name: "Run tests"
run: |
cd test
LLVM_CONFIG=llvm-config-18 PYLLVM_PLUGIN_PATH=../target/debug/libpyllvmpass.so pytest
cd ..
- name: 'Upload Artifact'
uses: actions/upload-artifact@v4
with:
name: libpyllvmpass.so
path: target/debug/libpyllvmpass.so