forked from flashrom/flashrom
-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (31 loc) · 909 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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/