Skip to content

Commit

Permalink
feat(build): use setup-v action
Browse files Browse the repository at this point in the history
  • Loading branch information
dy-tea committed Dec 21, 2024
1 parent 934801f commit 77123a3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 15 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build
on:
push:
branches:
- 'main'
- '*'

jobs:
build:
Expand All @@ -16,13 +16,8 @@ jobs:
- name: Install cross-compiler
run: sudo apt install gcc-mingw-w64-x86-64

- name: Install V
run: |
git clone --depth=1 https://github.com/vlang/v
cd v
make
sudo ./v symlink
v up
- name: Setup V
uses: vlang/[email protected]

- name: Build the project
run: v run build.vsh
9 changes: 2 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,8 @@ jobs:
- name: Install cross-compiler
run: sudo apt install gcc-mingw-w64-x86-64

- name: Install V
run: |
git clone --depth=1 https://github.com/vlang/v
cd v
make
sudo ./v symlink
v up
- name: Setup V
uses: vlang/[email protected]

- name: Build the project
run: v run build.vsh
Expand Down

0 comments on commit 77123a3

Please sign in to comment.