-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (40 loc) · 1.04 KB
/
build.yml
File metadata and controls
42 lines (40 loc) · 1.04 KB
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
39
40
41
42
name: build
on:
workflow_call:
inputs:
os:
required: true
type: string
jobs:
build:
runs-on: ubuntu-latest
container: ${{ inputs.os }}
steps:
- name: Install git
run: dnf install -y git
- name: Check out repository code
uses: actions/checkout@v4
- name: Install dependencies
uses: ./.github/actions/install-dependencies
- name: Mark github workspace as safe
run: git config --system --add safe.directory $PWD
- name: make
run: make
- name: make rpm
run: |
cmake -B build -DTELEMETRY_PACKAGE_BUILDER=ON
make rpm
- name: make examples
run: make examples
- name: make install
run: make install
- name: extract artifact name
run: |
OS=${{ inputs.os }}
echo "artifactName=$(echo ${OS/:/}-rpm)" >> $GITHUB_ENV
- name: upload RPM artifact
uses: actions/upload-artifact@v4
with:
name: ${{ env.artifactName }}
path: ./build/pkg/rpm/rpmbuild/RPMS/x86_64
retention-days: 1