Skip to content

ACTION_BOT: AC JOSS paper draft PDF (#536) #445

ACTION_BOT: AC JOSS paper draft PDF (#536)

ACTION_BOT: AC JOSS paper draft PDF (#536) #445

name: ubuntu-testsuite

Check failure on line 1 in .github/workflows/docker-ubuntu-build-and-test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/docker-ubuntu-build-and-test.yml

Invalid workflow file

you may only define one of `branches` and `branches-ignore` for a single event
on:
push:
branches: ["main"]
branches-ignore: ["joss_paper"]
pull_request:
branches: ["main"]
branches-ignore: ["joss_paper"]
jobs:
build-container:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Log in to Docker Hub
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build container
run: docker build -t ghcr.io/ibois-epfl/augmented-carpentry-ubuntu-testsuite:latest ${{ github.workspace }}/tests/dockerfiles/ubuntu
- name: Push
run: docker push ghcr.io/ibois-epfl/augmented-carpentry-ubuntu-testsuite:latest
configure-and-build-test:
needs: build-container
runs-on: ubuntu-latest
container:
image: ghcr.io/ibois-epfl/augmented-carpentry-ubuntu-testsuite:latest
steps:
- uses: actions/checkout@v4
with:
lfs: true
submodules: true
- name: Configure
run: |
git config --global --add safe.directory ${PWD}
cmake . -B build/ -DHEADLESS_TEST=ON -DDEPLOY_ON_TOUCH=OFF
- uses: actions/upload-artifact@v3
if: ${{ failure() }}
with:
name: configure-artifacts
path: build/
retention-days: 1
- name: Build and run test
run: cmake --build build