CI #3240
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
pull_request: | |
schedule: | |
- cron: '31 1,12 * * *' | |
jobs: | |
code-formatting: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout V | |
uses: actions/checkout@v4 | |
with: | |
repository: vlang/v | |
- name: Checkout ved | |
uses: actions/checkout@v4 | |
with: | |
path: ved | |
- name: Build V | |
run: make && ./v symlink -githubci | |
- name: v vet | |
run: v vet ved/ | |
- name: v fmt -verify | |
run: v fmt -verify ved/ | |
check-ubuntu: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout V | |
uses: actions/checkout@v4 | |
with: | |
repository: vlang/v | |
- name: Build V | |
run: make && ./v symlink -githubci | |
- name: Checkout ved | |
uses: actions/checkout@v4 | |
with: | |
path: ved | |
- name: Install dependencies | |
run: | | |
v retry -- sudo apt-get update | |
v retry -- sudo apt-get install --quiet -y \ | |
libfreetype6-dev libglfw3-dev libxi-dev libxcursor-dev | |
- name: Build ved | |
run: | | |
cd ved | |
v -prod . | |
v -autofree . | |
check-macos: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout V | |
uses: actions/checkout@v4 | |
with: | |
repository: vlang/v | |
- name: Checkout ved | |
uses: actions/checkout@v4 | |
with: | |
path: ved | |
- name: Build V | |
run: make && ./v symlink -githubci | |
- name: Build ved | |
run: | | |
cd ved | |
v . | |
v -prod . | |
check-windows: | |
runs-on: windows-2019 | |
steps: | |
- name: Checkout V | |
uses: actions/checkout@v4 | |
with: | |
repository: vlang/v | |
- name: Checkout ved | |
uses: actions/checkout@v4 | |
with: | |
path: ved | |
- name: Build V | |
run: | | |
.\make.bat -gcc | |
.\v.exe symlink -githubci | |
- name: Build ved | |
run: | | |
cd ved | |
v -prod . |