Add workflow for building release pull requests
This change adds a Github Actions workflow to build pull requests from the same repository to test whether they can be merged and released.
This commit is contained in:
parent
228a71465f
commit
d4cba085b7
1 changed files with 35 additions and 0 deletions
35
.github/workflows/build-trusted.yml
vendored
Normal file
35
.github/workflows/build-trusted.yml
vendored
Normal file
|
@ -0,0 +1,35 @@
|
|||
name: Kernel Build (Trusted)
|
||||
|
||||
on: pull_request
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build
|
||||
runs-on: [self-hosted]
|
||||
strategy:
|
||||
matrix:
|
||||
include:
|
||||
- build_cc: gcc-10
|
||||
if: github.event.pull_request.head.repo.full_name == github.repository && !contains(github.event.head_commit.message, 'skip ci')
|
||||
steps:
|
||||
- name: Checkout Sources
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: recursive
|
||||
- name: Build Kernel
|
||||
run: make
|
||||
env:
|
||||
PVE_BUILD_CC: ${{ matrix.build_cc }}
|
||||
- name: Read Build Information
|
||||
id: read_build_info
|
||||
run: |
|
||||
echo "::set-output name=release::$(sed '1q;d' release.txt)"
|
||||
echo "::set-output name=dst::$(sed '1q;d' artifacts.txt)"
|
||||
echo "::set-output name=hdr::$(sed '2q;d' artifacts.txt)"
|
||||
echo "::set-output name=tools::$(sed '3q;d' artifacts.txt)"
|
||||
- name: Upload Artifacts
|
||||
uses: actions/upload-artifact@v2-preview
|
||||
with:
|
||||
name: debs-${{ matrix.build_type }}
|
||||
path: "*.deb"
|
||||
|
Loading…
Reference in a new issue