wip: Re-enable fedora, small tweaks.
This commit is contained in:
parent
1e77c33e3e
commit
7e660232f9
35
.github/workflows/release.yml
vendored
35
.github/workflows/release.yml
vendored
|
@ -21,17 +21,18 @@ jobs:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Install build dependencies
|
||||||
|
run: |
|
||||||
|
# Install makepkg deps
|
||||||
|
pacman -Sy sudo binutils fakeroot grep base-devel git --noconfirm
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
cd pkg/arch/kernel
|
cd pkg/arch/kernel
|
||||||
|
|
||||||
# Create build user (can't makepkg as root)
|
# Fix permissions (can't makepkg as root)
|
||||||
useradd -m -g wheel -s /bin/bash build
|
echo "nobody ALL=(ALL) NOPASSWD: /usr/bin/pacman" >> /etc/sudoers
|
||||||
echo "build ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
chown -R nobody .
|
||||||
chown -R build:wheel .
|
|
||||||
|
|
||||||
# Install makepkg deps
|
|
||||||
pacman -Sy sudo binutils fakeroot grep base-devel git --noconfirm
|
|
||||||
|
|
||||||
# Package compression settings (Matches latest Arch)
|
# Package compression settings (Matches latest Arch)
|
||||||
export PKGEXT='.pkg.tar.zst'
|
export PKGEXT='.pkg.tar.zst'
|
||||||
|
@ -39,7 +40,7 @@ jobs:
|
||||||
export MAKEFLAGS="-j2"
|
export MAKEFLAGS="-j2"
|
||||||
|
|
||||||
# Build
|
# Build
|
||||||
su build --pty -p -s /bin/bash -c 'makepkg -f --syncdeps --skippgpcheck --noconfirm'
|
su nobody --pty -p -s /bin/bash -c 'makepkg -f --syncdeps --skippgpcheck --noconfirm'
|
||||||
|
|
||||||
- name: Prepare release
|
- name: Prepare release
|
||||||
run: |
|
run: |
|
||||||
|
@ -77,7 +78,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
sed 's/^deb /deb-src /' /etc/apt/sources.list >> /etc/apt/sources.list
|
sed 's/^deb /deb-src /' /etc/apt/sources.list >> /etc/apt/sources.list
|
||||||
apt-get -y update
|
apt-get -y update
|
||||||
apt-get -y install build-essential fakeroot rsync git wget python3-debian
|
apt-get -y install build-essential fakeroot rsync git wget python3-debian dpkg-sig
|
||||||
apt-get -y build-dep linux
|
apt-get -y build-dep linux
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
|
@ -168,7 +169,7 @@ jobs:
|
||||||
echo "$GPG_KEY" | base64 -d | gpg --import --no-tty --batch --yes
|
echo "$GPG_KEY" | base64 -d | gpg --import --no-tty --batch --yes
|
||||||
|
|
||||||
# sign packages
|
# sign packages
|
||||||
ls *.rpm | xargs -L1 -I % rpm --resign % --define "_gpg_name $KEY_NAME"
|
rpm --resign *.rpm --define "_gpg_name $KEY_NAME"
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
|
@ -191,10 +192,10 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: debian-latest
|
name: debian-latest
|
||||||
|
|
||||||
# - name: Download Fedora artifacts
|
- name: Download Fedora artifacts
|
||||||
# uses: actions/download-artifact@v1
|
uses: actions/download-artifact@v1
|
||||||
# with:
|
with:
|
||||||
# name: fedora-latest
|
name: fedora-latest
|
||||||
|
|
||||||
- name: Create release
|
- name: Create release
|
||||||
id: create_release
|
id: create_release
|
||||||
|
@ -203,8 +204,9 @@ jobs:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_BOT_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_BOT_TOKEN }}
|
||||||
with:
|
with:
|
||||||
# tag_name: ${{ github.ref }}
|
# tag_name: ${{ github.ref }}
|
||||||
|
# release_name: ${{ github.ref }}
|
||||||
tag_name: test
|
tag_name: test
|
||||||
release_name: ${{ github.ref }}
|
release_name: test
|
||||||
draft: true
|
draft: true
|
||||||
prerelease: false
|
prerelease: false
|
||||||
|
|
||||||
|
@ -213,6 +215,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
repo_token: ${{ secrets.GITHUB_BOT_TOKEN }}
|
repo_token: ${{ secrets.GITHUB_BOT_TOKEN }}
|
||||||
file: ./*-latest/*
|
file: ./*-latest/*
|
||||||
tag: ${{ github.ref }}
|
# tag: ${{ github.ref }}
|
||||||
|
tag: test
|
||||||
overwrite: true
|
overwrite: true
|
||||||
file_glob: true
|
file_glob: true
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
../../../patches/5.4/0002-hid.patch
|
|
Loading…
Reference in a new issue