Skip to content

ci: run install_ci on head ref of submitted changes; fix install_ci execution on changes to workflow file #9

ci: run install_ci on head ref of submitted changes; fix install_ci execution on changes to workflow file

ci: run install_ci on head ref of submitted changes; fix install_ci execution on changes to workflow file #9

Workflow file for this run

name: Install CI
on:
push:
paths:
- 'install.vsh'
- 'build.vsh'
- '**/install_ci.yml'
pull_request:
paths:
- 'install.vsh'
- 'build.vsh'
- '**/install_ci.yml'
jobs:
install:
strategy:
matrix:
os: [ubuntu-20.04, macos-latest, windows-latest]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- name: Install V
uses: vlang/[email protected]
with:
check-latest: true
- name: Install via webscript (Windows)
if: runner.os == 'Windows'
run: curl -o install.vsh https://raw.githubusercontent.com/${{ github.repository }}/${{ github.ref_name }}/install.vsh; v run install.vsh; del install.vsh
- name: Install via webscript (nix)
if: runner.os != 'Windows'
run: v -e "$(curl https://raw.githubusercontent.com/${{ github.repository }}/${{ github.ref_name }}/install.vsh -fsSL)"
- name: Check build success
run: ~/.config/v-analyzer/bin/v-analyzer --version