Browse Source

Merge pull request #61 from matt335672/extra_actions

CI Improvements
pull/63/head
matt335672 3 years ago
committed by GitHub
parent
commit
b4d03c5545
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 33 additions and 4 deletions
  1. +33
    -2
      .github/workflows/build.yml
  2. +0
    -2
      src/module-xrdp-sink.c

+ 33
- 2
.github/workflows/build.yml View File

@ -4,8 +4,8 @@ on:
pull_request: pull_request:
jobs: jobs:
build:
name: build
install_pa_sources:
name: install PA sources
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
# This is currently the only way to get a version into # This is currently the only way to get a version into
@ -21,6 +21,37 @@ jobs:
path: ~/pulseaudio.src path: ~/pulseaudio.src
key: ${{ runner.os }}-${{ env.OS_VERSION }}-build-${{ env.cache-name }} key: ${{ runner.os }}-${{ env.OS_VERSION }}-build-${{ env.cache-name }}
- run: scripts/install_pulseaudio_sources.sh - 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 update
- run: sudo apt-get -yq install build-essential libpulse-dev - run: sudo apt-get -yq install build-essential libpulse-dev
- run: ./bootstrap - run: ./bootstrap


+ 0
- 2
src/module-xrdp-sink.c View File

@ -372,8 +372,6 @@ static void process_render(struct userdata *u, pa_usec_t now) {
static void thread_func(void *userdata) { static void thread_func(void *userdata) {
struct userdata *u = userdata; struct userdata *u = userdata;
int ret;
pa_usec_t now;
pa_assert(u); pa_assert(u);


Loading…
Cancel
Save