2021-07-26 00:34:35 +02:00
|
|
|
name: Build Vinix kernel
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
2021-07-31 05:33:25 +02:00
|
|
|
paths-ignore:
|
|
|
|
- "**.md"
|
2021-07-26 00:34:35 +02:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
2021-07-31 05:33:25 +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
|
|
|
|
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
|