2021-09-29 18:41:12 +03:00
|
|
|
name: Check for compilation failures
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Check for compilation failures
|
2022-06-20 03:17:00 +03:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container: archlinux:latest
|
2021-09-29 18:41:12 +03:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Install dependencies
|
2022-08-18 18:32:54 +03:00
|
|
|
run: pacman --noconfirm -Syu && pacman --needed --noconfirm -S base-devel git autoconf automake nasm curl mtools llvm clang lld aarch64-linux-gnu-gcc
|
2022-06-20 03:17:00 +03:00
|
|
|
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v3
|
2021-09-29 18:41:12 +03:00
|
|
|
|
2022-06-20 03:17:00 +03:00
|
|
|
- name: Git config
|
|
|
|
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
2022-03-02 17:46:40 +03:00
|
|
|
|
2022-04-20 05:58:29 +03:00
|
|
|
- name: Build the bootloader (LLVM)
|
2022-07-05 10:14:48 +03:00
|
|
|
run: ./bootstrap && ./configure CROSS_TOOLCHAIN=llvm --enable-werror --enable-all && make all && make maintainer-clean
|
2022-07-01 16:04:57 +03:00
|
|
|
|
2022-08-18 18:32:54 +03:00
|
|
|
- name: Build the bootloader (GCC, x86)
|
|
|
|
run: ./bootstrap && ./configure CROSS_CC=gcc CROSS_LD=ld CROSS_OBJCOPY=objcopy CROSS_OBJDUMP=objdump CROSS_READELF=readelf --enable-werror --enable-bios --enable-uefi-ia32 --enable-uefi-x86_64 && make all && make maintainer-clean
|
|
|
|
|
|
|
|
- name: Build the bootloader (GCC, aarch64)
|
|
|
|
run: ./bootstrap && ./configure CROSS_TOOLCHAIN=aarch64-linux-gnu --enable-werror --enable-uefi-aarch64 && make all && make maintainer-clean
|