Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/neutrinolabs/pulseaudio-module-xrdp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatt335672 <30179339+matt335672@users.noreply.github.com>2021-10-13 11:35:37 +0300
committerGitHub <noreply@github.com>2021-10-13 11:35:37 +0300
commitb4d03c5545c1306461afb8fc0b14585d29840a4d (patch)
tree1ee9a3e83a4a6a72d0afdb18b327563f7714368e
parent95c96f86d6e24b6401561a191231e24352f8c01d (diff)
parente447bc4cffc02621ac66b48eb34544d9aeaa6ea1 (diff)
Merge pull request #61 from matt335672/extra_actions
CI Improvements
-rw-r--r--.github/workflows/build.yml35
-rw-r--r--src/module-xrdp-sink.c2
2 files changed, 33 insertions, 4 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 20c661c..5090b81 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -4,8 +4,8 @@ on:
pull_request:
jobs:
- build:
- name: build
+ install_pa_sources:
+ name: install PA sources
runs-on: ubuntu-latest
steps:
# This is currently the only way to get a version into
@@ -21,6 +21,37 @@ jobs:
path: ~/pulseaudio.src
key: ${{ runner.os }}-${{ env.OS_VERSION }}-build-${{ env.cache-name }}
- run: scripts/install_pulseaudio_sources.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:
+ # This is currently the only way to get a version into
+ # the cache tag name - see https://github.com/actions/cache/issues/543
+ - run: |
+ echo "OS_VERSION=`lsb_release -sr`" >> $GITHUB_ENV
+ - name: Fetch pulseaudio sources
+ uses: actions/cache@v2
+ env:
+ cache-name: cache-pulseaudio-src
+ with:
+ path: ~/pulseaudio.src
+ key: ${{ runner.os }}-${{ env.OS_VERSION }}-build-${{ env.cache-name }}
+ - uses: actions/checkout@v2
- run: sudo apt-get update
- run: sudo apt-get -yq install build-essential libpulse-dev
- run: ./bootstrap
diff --git a/src/module-xrdp-sink.c b/src/module-xrdp-sink.c
index 62f92d9..71b20fd 100644
--- a/src/module-xrdp-sink.c
+++ b/src/module-xrdp-sink.c
@@ -372,8 +372,6 @@ static void process_render(struct userdata *u, pa_usec_t now) {
static void thread_func(void *userdata) {
struct userdata *u = userdata;
- int ret;
- pa_usec_t now;
pa_assert(u);