Skip to content

Commit

Permalink
ci: add vpm workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm committed Dec 14, 2023
1 parent 936790e commit 35077c7
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/vpm_ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: VPM CI

on:
push:
paths:
- '**/vpm_ci.yml'
- 'cmd/tools/vpm.yml'
pull_request:
paths:
- '**/vpm_ci.yml'
- 'cmd/tools/vpm.yml'

concurrency:
group: build-vpm-apps-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true

jobs:
linux:
runs-on: ubuntu-20.04
strategy:
matrix:
cc: [tcc, gcc, clang]
fail-fast: false
env:
VFLAGS: -cc ${{ matrix.cc }} -d network
steps:
- uses: actions/checkout@v4
- name: Build V
run: |
make -j4
[[ ${{ matrix.cc }} != "tcc" ]] && ./v -cc ${{ matrix.cc }} -cg -cstrict -o v cmd/v
./v doctor
- name: Test
run: ./v test cmd/tools/vpm

windows:
runs-on: windows-2019
strategy:
matrix:
cc: [tcc, gcc, msvc]
fail-fast: false
env:
VFLAGS: -cc ${{ matrix.cc }} -d network
steps:
- uses: actions/checkout@v4
- name: Build V
run: ./make.bat -${{ matrix.cc }} && ./v doctor
- name: Test
run: ./v test cmd/tools/vpm

macos:
runs-on: macos-12
env:
VFLAGS: -d network
steps:
- uses: actions/checkout@v4
- name: Build V
run: make -j4 && ./v doctor
- name: Test
run: ./v test cmd/tools/vpm

0 comments on commit 35077c7

Please sign in to comment.