Skip to content

tools: improve environment detection when creating symlinks #1

tools: improve environment detection when creating symlinks

tools: improve environment detection when creating symlinks #1

Workflow file for this run

name: Symlink CI
on:
workflow_dispatch:
push:
paths:
- 'cmd/tools/vsymlink/**.v'
- '.github/workflows/symlink_ci.yml'
pull_request:
paths:
- 'cmd/tools/vsymlink/**.v'
- '.github/workflows/symlink_ci.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name == 'master' && github.sha || github.ref_name }}
cancel-in-progress: true
jobs:
symlink:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, macos-12, windows-2019]
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Build V
if: runner.os != 'Windows'
run: make -j4
- name: Build V (Windows)
if: runner.os == 'Windows'
run: ./make.bat
- name: Symlink
run: ./v symlink
- name: Check if V is usable
run: |
pwd
v version
cd ~
pwd
v version
echo 'println(123)' > hi.v
v run hi.v