23.10.1.3-t2 #77
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Kernel Package | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v2 | |
- name: Build In Docker | |
run: | | |
cat << EOF > entrypoint.sh | |
cd /etc/pacman.d | |
pacman -Syu --noconfirm --needed wget sudo base-devel | |
wget "https://gitlab.com/endeavouros-filemirror/PKGBUILDS/-/raw/master/endeavouros-mirrorlist/endeavouros-mirrorlist" | |
echo "" >> /etc/pacman.conf | |
echo "[endeavouros]" >> /etc/pacman.conf | |
echo "SigLevel = Never" >> /etc/pacman.conf | |
echo "Include = /etc/pacman.d/endeavouros-mirrorlist" >> /etc/pacman.conf | |
echo "" >> /etc/pacman.conf | |
pacman -Sy | |
cd /build | |
useradd builduser -m | |
passwd -d builduser | |
# wget "https://archive.archlinux.org/packages/k/kpmcore/kpmcore-22.08.3-1-x86_64.pkg.tar.zst" | |
# pacman -U kpmcore-22.08.3-1-x86_64.pkg.tar.zst | |
printf 'builduser ALL=(ALL) ALL\\n' | tee -a /etc/sudoers | |
chown -R builduser:builduser ./ | |
sudo -u builduser bash -c 'export MAKEFLAGS=j\$(nproc) && makepkg -s --noconfirm' | |
EOF | |
docker run -t -v $PWD:/build archlinux /bin/bash /build/entrypoint.sh | |
- name: Print sha512sums | |
run: sha512sum *.pkg.tar.* | |
- name: Upload Built Packages | |
uses: actions/upload-artifact@v2 | |
with: | |
name: built-packages | |
path: ${{ github.workspace }}/*.pkg.tar.* | |
- name: Create Tag | |
id: create_tag | |
run: | | |
source PKGBUILD | |
echo "::set-output name=tag::${pkgver}-${pkgrel}" | |
echo $pkgver $pkgrel | |
- name: Release | |
if: ${{ !contains(github.event.head_commit.message, '[no rel]') }} | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: | | |
${{ github.workspace }}/*.pkg.tar.* | |
tag_name: v${{ steps.create_tag.outputs.tag }} | |
draft: ${{ contains(github.event.head_commit.message, '[draft]') }} | |
prerelease: ${{ contains(github.event.head_commit.message, '[prerel]') }} | |
body: | | |
Install packages with `sudo pacman -U <file>`, you can use urls or file paths. | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |