From 63415c5875d0c675226efcc810d7630204ff0bb9 Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Tue, 26 Jan 2021 17:45:27 +0000 Subject: Add initial attempt at github action --- .github/workflows/build.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..9f5d4592 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,25 @@ +name: Build TCPDBench + +on: + push: + pull_request: + schedule: + - cron: 42 8 * * */21 + +jobs: + tcpdbench-docker: + name: Check TCPDBench (docker) + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Build TCPDBench docker image + run: docker build -t alan-turing-institute/tcpdbench . + + - name: Create output directory + run: mkdir -p docker_output + + - name: Recreate output and test for differences + run: -v docker_output:/TCPDBench/analysis/output alan-turing-institute/tcpdbench /bin/bash -c "make clean && make results && git checkout ./analysis/output/rankplots/*.pdf && git diff --exit-code" -- cgit v1.2.3