Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/sharedmemtest-c++.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: shared-mem-test-c++

env:
usingSharedMem: ''
on:
push:
branches:
- 'main'

jobs:

test:
runs-on: ubuntu-latest
container: ubuntu:latest

services:
model:
image: linusseelinger/model-exahype-tsunami
ports:
- 4242:4242
options: --ipc=host

steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Dependencies
run: |
apt update; DEBIAN_FRONTEND="noninteractive" apt install -y g++ libssl-dev
-
name: Build and run
run: |
cd clients/c++ && ./build.sh && checkShMem=$(./http-client model:4242 | grep -o "not accessible"); echo "CheckShMem=$checkShMem" >> $GITHUB_ENV
-
name: Check if Shared Memory is used
if: env.CheckShMem == 'not accessible'
run: |
echo "Shared Memory not available, failed"; exit 1
38 changes: 38 additions & 0 deletions .github/workflows/sharedmemtest-python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: shared-mem-test-python

on:
push:
branches:
- 'main'

jobs:

test:
runs-on: ubuntu-latest
container: ubuntu:latest

services:
model:
image: linusseelinger/model-exahype-tsunami:latest
ports:
- 4242:4242
options: --ipc=host

steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Dependencies
run: |
apt update && DEBIAN_FRONTEND="noninteractive" apt install -y python3-pip && pip3 install umbridge
-
name: Build and run
run: |
cd clients/python && checkShMem=$(python3 umbridge-client.py http://model:4242 | grep -o "not accessible"); echo "CheckShMem=$checkShMem" >> $GITHUB_ENV
-
name: Check if Shared Memory is used
if: env.CheckShMem == 'not accessible'
run: |
echo "Shared Memory not available, failed"; exit 1

Loading