forked from neutrinolabs/pulseaudio-module-xrdp
-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (54 loc) · 1.56 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: build
on:
push:
pull_request:
jobs:
install_pa_sources:
name: install PA sources
runs-on: ubuntu-latest
steps:
# Set steps.os.outputs.image to the specific OS (e.g. 'ubuntu20')
- name: Get operating system name and version.
id: os
run: echo "image=$ImageOS" >>$GITHUB_OUTPUT
shell: bash
- uses: actions/checkout@v3
- name: Cache pulseaudio source
uses: actions/cache@v3
env:
cache-name: cache-pulseaudio-src
with:
path: ~/pulseaudio.src
key: ${{ steps.os.outputs.image }}-build-${{ env.cache-name }}
- run: scripts/install_pulseaudio_sources_apt.sh
build:
strategy:
fail-fast: false
matrix:
include:
- CC: gcc
- CC: clang
name: build with ${{ matrix.CC }}
runs-on: ubuntu-latest
needs: install_pa_sources
env:
CC: ${{ matrix.CC }}
CFLAGS: -Wall -Wextra -Werror
steps:
- name: Get operating system name and version.
id: os
run: echo "image=$ImageOS" >>$GITHUB_OUTPUT
shell: bash
- name: Fetch pulseaudio sources
uses: actions/cache@v3
env:
cache-name: cache-pulseaudio-src
with:
path: ~/pulseaudio.src
key: ${{ steps.os.outputs.image }}-build-${{ env.cache-name }}
- uses: actions/checkout@v3
- run: sudo apt-get update
- run: sudo apt-get -yq install build-essential libpulse-dev
- run: ./bootstrap
- run: ./configure PULSE_DIR=~/pulseaudio.src
- run: make