github: add build workflow, remove lockdown

Change-Id: Ife3c7ab77d07a0e92858da6bc88c6343023b01c6
Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
This commit is contained in:
Maciej Pijanowski
2023-08-03 01:45:15 +02:00
parent 6b2061bc06
commit f7a30248e3
2 changed files with 38 additions and 36 deletions
+38
View File
@@ -0,0 +1,38 @@
name: Build Flashrom
on:
push:
branches:
- dasharo-release
- dasharo-develop
- ci
pull_request:
workflow_dispatch: # Allows manual triggering
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install build dependencies
run: |
sudo apt-get update
sudo apt-get install -y git build-essential debhelper pkg-config libpci-dev libusb-1.0-0-dev libftdi1-dev meson
- name: Build Flashrom
run: make
- name: Save Flashrom binary as artifact
run: |
mkdir artifacts
mv flashrom artifacts/
continue-on-error: true # Allow workflow to continue even if 'flashrom' doesn't exist
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: flashrom-artifact
path: artifacts/
-36
View File
@@ -1,36 +0,0 @@
name: 'Close issues and PRs'
on:
issues:
types: opened
pull_request_target:
types: opened
permissions:
issues: write
pull-requests: write
jobs:
action:
runs-on: ubuntu-latest
steps:
- uses: dessant/repo-lockdown@0b093279a77b44bbc38e85089b5463dd06b4aea4
with:
issue-comment: >
Thank you for your contribution. The flashrom project does not handle
GitHub issues or pull requests, since this repository on GitHub is
just a mirror of our actual repository. Thus, we would like to
encourage you to have a look at on our [development guidelines](https://www.flashrom.org/Development_Guidelines)
and submit your patch to [review.coreboot.org](https://review.coreboot.org/q/project:flashrom).
Issues are handled over our [ticket system](https://ticket.coreboot.org/projects/flashrom).
If you have questions, feel free to reach out to us. There are
multiple ways to [contact us](https://www.flashrom.org/Contact).
pr-comment: >
Thank you for your contribution. The flashrom project does not handle
GitHub issues or pull requests, since this repository on GitHub is
just a mirror of our actual repository. Thus, we would like to
encourage you to have a look at on our [development guidelines](https://www.flashrom.org/Development_Guidelines)
and submit your patch to [review.coreboot.org](https://review.coreboot.org/q/project:flashrom).
Issues are handled over our [ticket system](https://ticket.coreboot.org/projects/flashrom).
If you have questions, feel free to reach out to us. There are
multiple ways to [contact us](https://www.flashrom.org/Contact).