File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818 - name : install deps
1919 run : |
2020 pacman -Syu --noconfirm
21- pacman -S --noconfirm archiso base-devel go git sudo fakeroot
21+ pacman -S --noconfirm archiso base-devel go git sudo fakeroot clang
2222
2323 - name : setup build user
2424 run : |
Original file line number Diff line number Diff line change 3232 run : |
3333 pacman-key --init
3434 pacman-key --populate archlinux
35- pacman -Sy --noconfirm base-devel go python python-textual zstd git fakeroot nasm autoconf automake mtools
35+ pacman -Sy --noconfirm base-devel go python python-textual zstd git fakeroot nasm autoconf automake mtools clang
3636
3737 - name : Create builder
3838 run : |
7070 cd pkgbuilds/mochiboot
7171 pkgver=$(grep -oP '^pkgver=\K.*' PKGBUILD | head -1)
7272 tar czf "mochiboot-$pkgver.tar.gz" --exclude="mochiboot-$pkgver.tar.gz" --exclude='pkg' --exclude='src' *
73- sudo -u builder makepkg -cf --noconfirm --nodeps
73+ CC_FOR_TARGET=gcc sudo -u builder makepkg -cf --noconfirm --nodeps
7474
7575 - name : Create repo
7676 run : |
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ echo "==> rebuilding mochiboot pkg..."
5555cd " $MOCHIOS_DIR /pkgbuilds/mochiboot"
5656pkgver=$( _get_pkgver PKGBUILD)
5757tar czf " mochiboot-$pkgver .tar.gz" --exclude=" mochiboot-$pkgver .tar.gz" --exclude=' pkg' --exclude=' src' *
58- sudo -u mochi makepkg -cf --noconfirm --nodeps
58+ CC_FOR_TARGET=gcc sudo -u mochi makepkg -cf --noconfirm --nodeps
5959cp " $MOCHIOS_DIR /pkgbuilds/mochiboot" /mochiboot-[0-9]* .pkg.tar.zst " $REPO_DIR /os/x86_64/"
6060
6161echo " ==> rebuilding mochios-defaults pkg..."
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ sha256sums=('SKIP'
2525build () {
2626 cd " $srcdir /mochiboot"
2727 ./bootstrap
28- ./configure --enable-grub --enable-bios --enable-uefi-x86-64
28+ CC_FOR_TARGET= " ${CC_FOR_TARGET :- gcc} " ./configure --enable-grub --enable-bios --enable-uefi-x86-64
2929 make
3030}
3131
You can’t perform that action at this time.
0 commit comments