2020-01-09 22:24:48 +00:00
|
|
|
name: Fedora 31 - kernel-surface
|
|
|
|
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2020-01-10 00:17:23 +00:00
|
|
|
name: Build Kernel
|
2020-01-09 22:24:48 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container: fedora:31
|
|
|
|
steps:
|
2020-01-10 00:17:23 +00:00
|
|
|
- name: Checkout
|
2020-01-09 22:38:10 +00:00
|
|
|
uses: actions/checkout@v2
|
2020-01-09 22:24:48 +00:00
|
|
|
- name: Decrypt certificates
|
|
|
|
env:
|
|
|
|
LS_PASSWORD: ${{ secrets.LS_PASSWORD }}
|
|
|
|
run: |
|
2020-01-10 00:17:23 +00:00
|
|
|
pushd pkg/secrets
|
|
|
|
decrypt.sh -p "$LS_PASSWORD" -f gpg/surface_gpg.key.gpg
|
|
|
|
decrypt.sh -p "$LS_PASSWORD" -f sb/surface_sb.key.gpg
|
|
|
|
popd
|
2020-01-09 22:24:48 +00:00
|
|
|
- name: Install certificates
|
2020-01-10 00:19:06 +00:00
|
|
|
run: |
|
2020-01-09 22:38:10 +00:00
|
|
|
gpg --no-tty --batch --yes --import pkg/secrets/gpg/surface_gpg.key
|
2020-01-09 22:24:48 +00:00
|
|
|
cp pkg/secrets/sb/surface_sb.key pkg/fedora/kernel-surface/surface.key
|
|
|
|
cp pkg/secrets/sb/surface_sb.crt pkg/fedora/kernel-surface/surface.crt
|
2020-01-10 00:17:23 +00:00
|
|
|
- name: Install build dependencies
|
2020-01-09 22:38:10 +00:00
|
|
|
run: |
|
2020-01-10 00:17:23 +00:00
|
|
|
dnf install -y rpmdevtools findutils openssl openssl-devel kmod \
|
|
|
|
patch bash tar git-core sbsigntools bzip2 xz findutils gzip m4 \
|
|
|
|
diffutils perl-interpreter perl-Carp perl-devel perl-generators \
|
|
|
|
make gawk gcc binutils redhat-rpm-config hmaccalc bison flex \
|
|
|
|
net-tools hostname bc elfutils-devel python3-devel rpm-sign
|
|
|
|
- name: Build packages
|
2020-01-09 22:24:48 +00:00
|
|
|
run: |
|
2020-01-10 00:17:23 +00:00
|
|
|
pushd pkg/fedora/kernel-surface
|
|
|
|
../makerpm -sk linux-surface
|
|
|
|
popd
|
2020-01-09 22:24:48 +00:00
|
|
|
- name: Upload artifacts
|
|
|
|
uses: actions/upload-artifact@v1
|
|
|
|
with:
|
|
|
|
name: kernel-surface-fc31
|
|
|
|
path: pkg/fedora/kernel-surface/out/x86_64
|