Skip to content

Commit

Permalink
ci: add new workflow, for doing the slower tests in vpm specifically …
Browse files Browse the repository at this point in the history
…with `-d network` (#20177)
  • Loading branch information
ttytm committed Dec 15, 2023
1 parent b3743d3 commit c5a6aeb
Showing 1 changed file with 70 additions and 0 deletions.
70 changes: 70 additions & 0 deletions .github/workflows/vpm_ci.yml
@@ -0,0 +1,70 @@
name: VPM CI

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

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

jobs:
setup:
strategy:
matrix:
os: [ubuntu-20.04, windows-2019, macos-12]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
path: vlang
- name: Build V
if: runner.os != 'Windows'
run: cd vlang && make -j4 && ./v doctor
- name: Build V (Windows)
if: runner.os == 'Windows'
run: cd vlang && ./make.bat && ./v doctor
- name: Cache V
uses: actions/cache/save@v3
with:
path: vlang
key: ${{ runner.os }}-${{ github.sha }}

test:
needs: setup
strategy:
matrix:
include:
- os: ubuntu-20.04
cc: tcc
- os: ubuntu-20.04
cc: gcc
- os: ubuntu-20.04
cc: clang
- os: windows-2019
cc: tcc
- os: windows-2019
cc: gcc
- os: windows-2019
cc: msvc
- os: macos-12
cc: clang
fail-fast: false
runs-on: ${{ matrix.os }}
env:
VFLAGS: -cc ${{ matrix.cc }} -d network
steps:
- name: Restore V cache
uses: actions/cache/restore@v3
with:
path: vlang
key: ${{ runner.os }}-${{ github.sha }}
- name: Test
run: cd vlang && ./v test cmd/tools/vpm

0 comments on commit c5a6aeb

Please sign in to comment.