Skip to content

rename args to options #43

rename args to options

rename args to options #43

Workflow file for this run

name: Build and Test
on: [push, pull_request]
jobs:
winos-test:
runs-on: windows-latest
env:
VFLAGS: -cc tcc
VJOBS: 1
VTEST_SHOW_START: 1
steps:
- name: Checkout
uses: actions/checkout@v2
with:
path: lsv
- name: Checkout Latest V
uses: actions/checkout@v2
with:
repository: vlang/v
path: v
- name: Build V
shell: bash
run: |
# Build V
cd v && ./make.bat -tcc
echo "adding '${PWD}' to PATH"
echo "${PWD}" >> $GITHUB_PATH
- name: Build all
shell: bash
run: cd lsv/lsv && v -prod .
- name: Run program
shell: bash
run: cd lsv/lsv && ./lsv
- name: Run tests
shell: bash
run: cd lsv && v test .
- name: Save binary
uses: actions/upload-artifact@v4
with:
name: lsv_windows.exe
path: lsv/lsv/lsv.exe
ubuntu-prod-build:
runs-on: ubuntu-latest
steps:
- name: Checkout Latest V
uses: actions/checkout@v2
with:
repository: vlang/v
path: v
- name: Build V
run: cd v && make && sudo ./v symlink && cd -
- name: Checkout lsv (for tests)
uses: actions/checkout@v2
with:
path: lsv
- name: Build all with -prod
run: cd lsv/lsv && v -prod .
- name: Run program
shell: bash
run: cd lsv/lsv && ./lsv
- name: Run tests
shell: bash
run: cd lsv/lsv && v test .
- name: Save binary
uses: actions/upload-artifact@v4
with:
name: lsv_nix
path: lsv/lsv/lsv
mac-prod-build:
runs-on: macos-latest
steps:
- name: Checkout Latest V
uses: actions/checkout@v2
with:
repository: vlang/v
path: v
- name: Build V
run: cd v && make && sudo ./v symlink && cd -
- name: Checkout lsv (for tests)
uses: actions/checkout@v2
with:
path: lsv
- name: Build all with -prod
run: cd lsv/lsv && v -prod .
- name: Run program
shell: bash
run: cd lsv/lsv && ./lsv
- name: Run tests
shell: bash
run: cd lsv/lsv && v test .
- name: Save binary
uses: actions/upload-artifact@v4
with:
name: lsv_mac_m1
path: lsv/lsv/lsv