:: commit 136a1792db44413cc9bcf843dada3ea67f394679

mintsuki <mintsuki@protonmail.com> — 2022-06-20 00:17

parents: 80633f3ae3

gh: Run check workflow on Arch Linux container

diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml
index 3e8e0b34..20de8938 100644
--- a/.github/workflows/check.yml
+++ b/.github/workflows/check.yml
@@ -5,17 +5,18 @@ on: [push, pull_request]
 jobs:
   build:
     name: Check for compilation failures
-    runs-on: ubuntu-20.04
+    runs-on: ubuntu-latest
+    container: archlinux:latest
 
     steps:
-      - name: Checkout code
-        uses: actions/checkout@v2
-
       - name: Install dependencies
-        run: sudo apt-get update && sudo apt-get install git build-essential autoconf automake nasm curl mtools llvm clang lld -y
+        run: pacman --noconfirm -Syu && pacman --needed --noconfirm -S base-devel git autoconf automake nasm curl mtools llvm clang lld
+
+      - name: Checkout code
+        uses: actions/checkout@v3
 
-      - name: Build the bootloader (GNU)
-        run: ./bootstrap && ./configure --enable-werror --enable-all && make all && make maintainer-clean
+      - name: Git config
+        run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
 
       - name: Build the bootloader (LLVM)
         run: ./bootstrap && ./configure TOOLCHAIN=llvm --enable-werror --enable-all && make all && make maintainer-clean
tab: 248 wrap: offon