chore: add github test action

main
Sean McBride 4 years ago
parent fba3153184
commit 6ebf9e9a65

@ -2,6 +2,10 @@
name: sledge name: sledge
on: [push, pull_request] 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 # job control
jobs: jobs:
format: format:
@ -10,3 +14,36 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Clang Format - name: Clang Format
run: ./format.sh -d 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

@ -10,6 +10,8 @@ project_directory=$(cd ../../../.. && pwd)
binary_directory=$(cd "$project_directory"/bin && pwd) binary_directory=$(cd "$project_directory"/bin && pwd)
did_pass=true did_pass=true
did_pass=true
if [ "$1" != "-d" ]; then if [ "$1" != "-d" ]; then
PATH="$binary_directory:$PATH" LD_LIBRARY_PATH="$binary_directory:$LD_LIBRARY_PATH" sledgert "$experiment_directory/spec.json" & PATH="$binary_directory:$PATH" LD_LIBRARY_PATH="$binary_directory:$LD_LIBRARY_PATH" sledgert "$experiment_directory/spec.json" &
sleep 1 sleep 1

Loading…
Cancel
Save