2021-07-26 01:34:35 +03:00
|
|
|
name: Build Vinix kernel
|
|
|
|
|
|
|
|
on:
|
2022-05-15 09:06:01 +03:00
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
|
|
|
- "**.md"
|
|
|
|
push:
|
2022-05-22 20:19:04 +03:00
|
|
|
branches:
|
|
|
|
- master
|
2022-05-15 09:06:01 +03:00
|
|
|
paths-ignore:
|
|
|
|
- "**.md"
|
2021-07-26 01:34:35 +03:00
|
|
|
|
|
|
|
jobs:
|
2021-07-26 08:49:03 +03:00
|
|
|
vinix-build:
|
2021-07-26 01:34:35 +03:00
|
|
|
runs-on: ubuntu-20.04
|
2022-05-22 20:19:04 +03:00
|
|
|
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
|
2022-06-09 00:44:29 +03:00
|
|
|
env:
|
|
|
|
VFLAGS: -gc none
|
2021-07-26 01:34:35 +03:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2022-02-15 12:19:28 +03:00
|
|
|
|
2021-07-26 01:34:35 +03:00
|
|
|
- name: Install dependencies
|
2022-02-14 21:57:35 +03:00
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install build-essential meson -y
|
2022-02-15 12:19:28 +03:00
|
|
|
|
2021-07-26 01:34:35 +03:00
|
|
|
- name: Build V
|
|
|
|
run: make
|
2022-02-15 12:19:28 +03:00
|
|
|
|
2021-07-26 01:34:35 +03:00
|
|
|
- name: Clone current Vinix
|
2022-02-15 12:19:28 +03:00
|
|
|
run: git clone https://github.com/vlang/vinix.git
|
|
|
|
|
2021-07-26 01:34:35 +03:00
|
|
|
- name: Attempt to build the Vinix kernel (debug)
|
2022-02-15 12:19:28 +03:00
|
|
|
run: cd vinix/kernel && make PROD=false CFLAGS="-D__vinix__ -O2 -g -pipe" V="../../v" && make clean
|
|
|
|
|
2021-07-26 01:34:35 +03:00
|
|
|
- name: Attempt to build the Vinix kernel (prod)
|
2022-02-15 12:19:28 +03:00
|
|
|
run: cd vinix/kernel && make PROD=true CFLAGS="-D__vinix__ -O2 -g -pipe" V="../../v" && make clean
|