-
Notifications
You must be signed in to change notification settings - Fork 30
32 lines (30 loc) · 936 Bytes
/
ci.yml
File metadata and controls
32 lines (30 loc) · 936 Bytes
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
permissions: read-all
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build-linux:
runs-on: [ubuntu-22.04]
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
fetch-depth: 1
- name: Build docker image
run: |
docker build -f ${{ github.workspace }}/builder/Dockerfile.builder-ubuntu22.04 -t intel-xpumanager ${{ github.workspace }}
- name: Run build.sh
run: |
rm -fr build
docker run -v ${{ github.workspace }}:/workspace intel-xpumanager bash -c "cd /workspace && ./build.sh"
- name: Check if the build was successful
run: |
set -e
if ls "${{ github.workspace }}/build"/*.deb >/dev/null 2>&1; then
echo "Package exists."
else
echo "Package does not exist."
exit 1
fi