Skip to content

Commit

Permalink
Merge pull request #36 from keevindoherty/main
Browse files Browse the repository at this point in the history
Migrate CI to Github Actions
  • Loading branch information
keevindoherty authored Feb 8, 2023
2 parents b5c64b6 + d0f0a55 commit da78b65
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/docker-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Docker Image CI

on:
workflow_dispatch:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Build Docker image
run: docker build . --file Dockerfile --tag local

- name: Build code
run: docker run -v $PWD:/work -w/work local /bin/bash -c "mkdir build && cd build && cmake -DDCSAM_ENABLE_TESTS=ON .. && make -j8"

- name: Run tests
run: docker run -v $PWD:/work -w/work local /bin/bash -c "cd build && make test"

0 comments on commit da78b65

Please sign in to comment.