-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
separate Docker setup and workflow for lab4
- Loading branch information
Showing
3 changed files
with
38 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Lab 4 Build and Test | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'lab4/**' | ||
pull_request: | ||
paths: | ||
- 'lab4/**' | ||
|
||
jobs: | ||
build_and_test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Build Docker image for Lab 4 | ||
run: docker build ./lab4 -t lab4-application | ||
|
||
- name: Run Docker container | ||
run: docker run --rm lab4-application |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM ubuntu:latest | ||
|
||
RUN apt-get update && apt-get install -y gcc make | ||
|
||
WORKDIR /lab4 | ||
|
||
COPY src /lab4/src | ||
COPY include /lab4/include | ||
COPY tests /lab4/tests | ||
COPY Makefile /lab4/ | ||
|
||
RUN make all | ||
|
||
CMD ["./test"] |