Skip to content

Runner

Runner #25

Workflow file for this run

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 dependencies
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y unzip curl build-essential
# Step 3: Install V compiler from source to ensure vlib is included
- name: Install V
run: |
git clone --depth=1 https://github.com/vlang/v.git
cd ./v
make
cd ..
# Step 4: Verify V installation
- name: Verify V installation
run: ./v/v version
# Step 5: Init the project
- name: Init V project
run: ./v/v init
# Step 6: Build the project
- name: Build project
run: ./v/v main.v