-
Notifications
You must be signed in to change notification settings - Fork 82
37 lines (35 loc) · 1.2 KB
/
build-debs.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
name: Build DEBs
on:
push:
branches:
- master
pull_request:
branches: [master]
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
DEB:
strategy:
matrix:
distro: [ubuntu22]
runs-on: ubuntu-latest
name: Build ${{ matrix.distro }}
steps:
- uses: actions/checkout@v3
- name: Build Docker Image
run: docker build . -f docker/${{ matrix.distro }}/Dockerfile -t opae-${{ matrix.distro }}
- name: Build DEBs
run: |
docker run --rm -v ${{ github.workspace }}:/opae-${{ matrix.distro }}/opae-sdk opae-${{ matrix.distro }} /opae-${{ matrix.distro }}/opae-sdk
- name: Install and Test DEBs
if: ${{ github.event_name != 'pull_request'}}
run: |
docker run --rm -v ${{ github.workspace }}:/opae-${{ matrix.distro }}/opae-sdk --workdir /opae-${{ matrix.distro }}/opae-sdk --entrypoint /bin/bash opae-${{ matrix.distro }} -c "/scripts/test-debs.sh"
- name: Upload Artifact
if: ${{ github.event_name != 'pull_request'}}
uses: actions/upload-artifact@v3
with:
name: OPAE-${{ matrix.distro }}
path:
${{ github.workspace }}/packaging/opae/deb/*.deb