Add building targets using Docker #9
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
name: Run Makefile targets | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build Docker Image from Devcontainer Definition | |
run: docker build . -f .devcontainer/Dockerfile -t devcontainer | |
- name: Run Tests | |
run: docker run --rm -v ${{ github.workspace }}:/workspace -w /workspace devcontainer make test | |
- name: Run Build | |
run: docker run --rm -v ${{ github.workspace }}:/workspace -w /workspace devcontainer make build | |
- name: Run Build (Windows) | |
run: docker run --rm -v ${{ github.workspace }}:/workspace -w /workspace devcontainer make build-windows |