From 743bce133a437e19dc80bd2b0b7ff9e282c4a1f8 Mon Sep 17 00:00:00 2001 From: zakuro Date: Fri, 29 Sep 2023 17:50:14 +0900 Subject: [PATCH] ci: add ci --- .github/workflows/ci.yaml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..47fdc18 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,31 @@ +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