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