Makefile: add docker tasks #8
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: CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
# Run each jobs in container by use of shared Dockerfile | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: | | |
git clone https://github.com/vlang/v /opt/v --depth 1 | |
cd /opt/v | |
make | |
./v symlink | |
- run: make build | |
- run: make run args=-help | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: | | |
git clone https://github.com/vlang/v /opt/v --depth 1 | |
cd /opt/v | |
make | |
./v symlink | |
- run: make test |