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 9d69742
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.PHONY: setup setup-v

setup: setup-v

setup-v:
git clone https://github.com/vlang/v /opt/v --depth 1
cd /opt/v && make
/opt/v/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 9d69742

Please sign in to comment.