Stop building firmware, mark prebuilt releases as draft.
This commit is contained in:
parent
2b323c976e
commit
6cab438991
20
.github/workflows/release.yml
vendored
20
.github/workflows/release.yml
vendored
|
@ -1,9 +1,8 @@
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
tags:
|
||||||
- feature/pkg
|
- 'test'
|
||||||
# tags:
|
# - 'v*+'
|
||||||
# - 'v*+'
|
|
||||||
|
|
||||||
name: Create release and upload binaries
|
name: Create release and upload binaries
|
||||||
|
|
||||||
|
@ -18,7 +17,7 @@ jobs:
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
cd pkg/arch
|
cd pkg/arch/kernel
|
||||||
|
|
||||||
# Create build user (can't makepkg as root)
|
# Create build user (can't makepkg as root)
|
||||||
useradd -m -g wheel -s /bin/bash build
|
useradd -m -g wheel -s /bin/bash build
|
||||||
|
@ -28,13 +27,18 @@ jobs:
|
||||||
# Install makepkg deps
|
# Install makepkg deps
|
||||||
pacman -Sy sudo binutils fakeroot grep base-devel git --noconfirm
|
pacman -Sy sudo binutils fakeroot grep base-devel git --noconfirm
|
||||||
|
|
||||||
|
# Package compression settings (Matches latest Arch)
|
||||||
|
export PKGEXT='.pkg.tar.zst'
|
||||||
|
export COMPRESSZST=(zstd -c -T0 --ultra -20 -)
|
||||||
|
export MAKEFLAGS="-j2"
|
||||||
|
|
||||||
# Build
|
# Build
|
||||||
su build --pty -s /bin/bash -c './build.sh'
|
su build --pty -p -s /bin/bash -c 'makepkg -f --syncdeps --skippgpcheck --noconfirm'
|
||||||
|
|
||||||
- name: Prepare Release
|
- name: Prepare Release
|
||||||
run: |
|
run: |
|
||||||
mkdir release
|
mkdir release
|
||||||
mv pkg/arch/**/*.pkg.tar.zst release
|
mv pkg/arch/kernel/*.pkg.tar.zst release
|
||||||
|
|
||||||
- name: Sign Packages
|
- name: Sign Packages
|
||||||
env:
|
env:
|
||||||
|
@ -73,7 +77,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ github.ref }}
|
tag_name: ${{ github.ref }}
|
||||||
release_name: ${{ github.ref }}
|
release_name: ${{ github.ref }}
|
||||||
draft: false
|
draft: true
|
||||||
prerelease: false
|
prerelease: false
|
||||||
|
|
||||||
- name: Upload Arch Linux Assets to Release
|
- name: Upload Arch Linux Assets to Release
|
||||||
|
|
|
@ -1,16 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
set -euxo pipefail
|
|
||||||
|
|
||||||
# Package compression settings (Matches latest Arch)
|
|
||||||
export PKGEXT='.pkg.tar.zst'
|
|
||||||
export COMPRESSZST=(zstd -c -T0 --ultra -20 -)
|
|
||||||
export MAKEFLAGS="-j2"
|
|
||||||
|
|
||||||
# Build the packages
|
|
||||||
pushd surface-ipts-firmware
|
|
||||||
makepkg -f --syncdeps --skippgpcheck --noconfirm
|
|
||||||
popd
|
|
||||||
|
|
||||||
pushd kernel
|
|
||||||
makepkg -f --syncdeps --skippgpcheck --noconfirm
|
|
||||||
popd
|
|
Loading…
Reference in a new issue