diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 3076dbf..827b178 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -2,6 +2,10 @@ name: sledge on: [push, pull_request] +env: + LLVM_VERSION: 11 + WASMCEPTION_URL: https://github.com/gwsystems/wasmception/releases/download/v0.2.0/wasmception-linux-x86_64-0.2.0.tar.gz + # job control jobs: format: @@ -10,3 +14,36 @@ jobs: - uses: actions/checkout@v2 - name: Clang Format run: ./format.sh -d + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Install + run: | + sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" bash $LLVM_VERSION + sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-$LLVM_VERSION 100 + sudo update-alternatives --install /usr/bin/llvm-config llvm-config /usr/bin/llvm-config-$LLVM_VERSION 100 + # sudo apt-get install libc++-11 libc++-dev libc++abi-dev --yes + # not really sure why we need to modify this + PATH=/usr/bin:$PATH + llvm-config --version + + - name: Init Submodules + run: | + git submodule update --init --recursive + + - name: Get wasmception + run: | + wget $WASMCEPTION_URL -O wasmception.tar.gz + mkdir -p awsm/wasmception + tar xvfz wasmception.tar.gz -C awsm/wasmception + + - name: Compile awsm + run: | + cd awsm && cargo build --release && cd .. + - name: Compile sledge + run: | + make rtinit + - name: Hyde + run: | + cd runtime/experiments/applications/ocr/hyde && ./run.sh diff --git a/runtime/experiments/applications/ocr/hyde/run.sh b/runtime/experiments/applications/ocr/hyde/run.sh index 875af1a..73ff551 100755 --- a/runtime/experiments/applications/ocr/hyde/run.sh +++ b/runtime/experiments/applications/ocr/hyde/run.sh @@ -10,6 +10,8 @@ project_directory=$(cd ../../../.. && pwd) binary_directory=$(cd "$project_directory"/bin && pwd) did_pass=true +did_pass=true + if [ "$1" != "-d" ]; then PATH="$binary_directory:$PATH" LD_LIBRARY_PATH="$binary_directory:$LD_LIBRARY_PATH" sledgert "$experiment_directory/spec.json" & sleep 1