Skip to content

Commit

Permalink
ci: move setup code to Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
zakuro9715 committed Sep 30, 2023
1 parent c483ee4 commit 40c1a7c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.PHONY: setup setup-v

vroot := /opt/v

setup: setup-v

setup-v:
git clone https://github.com/vlang/v $(vroot) --depth 1
cd $(vroot) && make
$(vroot)/v symlink
12 changes: 2 additions & 10 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,12 @@ jobs:
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 -f ./.github/workflows/Makefile setup
- 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 -f ./.github/workflows/Makefile setup
- run: make test

0 comments on commit 40c1a7c

Please sign in to comment.