2021-09-29 18:41:12 +03:00
|
|
|
name: Check for compilation failures
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Check for compilation failures
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
|
|
|
|
steps:
|
2021-09-29 18:51:04 +03:00
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
2021-09-29 18:41:12 +03:00
|
|
|
- name: Install dependencies
|
2022-03-02 17:46:40 +03:00
|
|
|
run: sudo apt-get update && sudo apt-get install git build-essential autoconf automake nasm curl mtools clang -y
|
2021-09-29 18:41:12 +03:00
|
|
|
|
2022-03-02 17:46:40 +03:00
|
|
|
- name: Build the bootloader (gcc)
|
|
|
|
run: ./autogen.sh CC=gcc --enable-werror && make all && make maintainer-clean
|
|
|
|
|
|
|
|
- name: Build the bootloader (clang)
|
|
|
|
run: ./autogen.sh CC=clang --enable-werror && make all && make maintainer-clean
|