Update v-build.yml #7
This file contains hidden or 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: V Build | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# Step 1: Checkout the repository code | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
# Step 2: Install the V compiler | |
- name: Install V | |
run: | | |
curl -LO https://github.com/vlang/v/releases/latest/download/v_linux.zip | |
unzip v_linux.zip | |
chmod +x v/v | |
sudo mv v/v /usr/local/bin/ | |
# Step 3: Build the project (adjust the command if your entry file is different) | |
- name: Build project | |
run: | | |
v . |