Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into fix-build-warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
derselbst committed May 13, 2023
2 parents 4a61d54 + 0e0ba24 commit e847d43
Show file tree
Hide file tree
Showing 7 changed files with 127 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .azure/Dockerfile.azure-alpine
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
ARG BASE_IMAGE=alpine:3.18
FROM ${BASE_IMAGE}

RUN apk add --no-cache --virtual .pipeline-deps readline linux-pam \
&& apk add bash sudo shadow \
&& apk add \
cmake make \
glib-dev \
ladspa-dev \
nodejs-current \
gcc g++ \
pkgconf \
&& apk del .pipeline-deps

LABEL "com.azure.dev.pipelines.agent.handler.node.path"="/usr/bin/node"

CMD [ "node" ]
100 changes: 100 additions & 0 deletions .azure/azure-pipelines-alpine.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@

trigger:
paths:
include:
- '*'
exclude:
- '.azure/azure-pipelines-android.yml'
- '.azure/azure-pipelines-mac.yml'
- '.azure/cmake-android.yml'
- '.azure/azure-pipelines-vcpkg.yml'
- '.azure/azure-pipelines-win.yml'
- '.circleci/config.yml'
- '.github/workflows/linux.yml'
- '.github/workflows/sonarcloud.yml'
- '.cirrus.yml'
- 'README.md'

resources:
containers:
- container: alpine-linux
endpoint: 'myDockerHub'
image: tommoebert332/alpine-cmake:latest

variables:
AlpineImageName: 'tommoebert332/alpine-cmake:latest'

stages:
- stage: DockerBuild
displayName: 'Docker Build'
jobs:
- job: DockerBuild
pool:
vmImage: 'ubuntu-20.04'
steps:
- checkout: self

- task: Docker@2
continueOnError: true
displayName: 'Docker login'
inputs:
containerRegistry: 'myDockerHub'
command: 'login'

- bash: |
docker build -f .azure/Dockerfile.azure-alpine \
-t $(AlpineImageName) \
.azure
displayName: 'docker build'
- bash: |
docker push $(AlpineImageName)
displayName: 'docker push'
- task: Docker@2
displayName: 'docker logout'
condition: always()
inputs:
command: logout
containerRegistry: 'myDockerHub'

- stage: FluidAlpineBuild
displayName: 'Build on alpine'
jobs:
- job: Alpine
pool:
vmImage: 'ubuntu-20.04'
strategy:
matrix:
no-cflags:
CFLAGS: ''
CMFLAGS: ''
posix-cflags:
CFLAGS: '-D_POSIX_C_SOURCE=199506L'
CMFLAGS: ''
gentoo-flags:
CFLAGS: '-pipe -frecord-gcc-switches -fno-diagnostics-color -fmessage-length=0 -D_POSIX_C_SOURCE=199506L'
CXXFLAGS: '-pipe -frecord-gcc-switches -fno-diagnostics-color -fmessage-length=0'
CMFLAGS: '-Denable-profiling=yes -Denable-pulseaudio=no -Denable-pipewire=no -Denable-readline=yes -Denable-systemd=no -Denable-threads=no -Denable-trap-on-fpe=yes -Denable-ubsan=OFF'
strncasecmp-flags:
CFLAGS: '-D_POSIX_C_SOURCE=199506L -DNCURSES_WIDECHAR'
CMFLAGS: '-Denable-floats=1 -Denable-benchmark=1'

container: alpine-linux
steps:
- checkout: self
- task: CMake@1
displayName: 'CMake configure'
inputs:
cmakeArgs: $(CMFLAGS) -DCMAKE_VERBOSE_MAKEFILE=1 ..
workingDirectory: 'build'
- task: CMake@1
displayName: 'CMake Build'
inputs:
cmakeArgs: --build . --parallel
workingDirectory: 'build'
- task: CMake@1
displayName: 'CMake Check'
inputs:
cmakeArgs: --build . --target check --parallel
workingDirectory: 'build'
2 changes: 2 additions & 0 deletions .azure/azure-pipelines-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ trigger:
include:
- '*'
exclude:
- '.azure/azure-pipelines-alpine.yml'
- '.azure/azure-pipelines-mac.yml'
- '.azure/azure-pipelines-vcpkg.yml'
- '.azure/azure-pipelines-win.yml'
- '.azure/Dockerfile.azure-alpine'
- '.circleci/config.yml'
- '.github/workflows/linux.yml'
- '.github/workflows/sonarcloud.yml'
Expand Down
2 changes: 2 additions & 0 deletions .azure/azure-pipelines-mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ trigger:
- '*'
exclude:
- '.azure/azure-pipelines-android.yml'
- '.azure/azure-pipelines-alpine.yml'
- '.azure/cmake-android.yml'
- '.azure/azure-pipelines-vcpkg.yml'
- '.azure/azure-pipelines-win.yml'
- '.azure/Dockerfile.azure-alpine'
- '.circleci/config.yml'
- '.github/workflows/linux.yml'
- '.github/workflows/sonarcloud.yml'
Expand Down
2 changes: 2 additions & 0 deletions .azure/azure-pipelines-vcpkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ trigger:
- '*'
exclude:
- '.azure/azure-pipelines-android.yml'
- '.azure/azure-pipelines-alpine.yml'
- '.azure/cmake-android.yml'
- '.azure/azure-pipelines-mac.yml'
- '.azure/azure-pipelines-win.yml'
- '.azure/Dockerfile.azure-alpine'
- '.circleci/config.yml'
- '.github/workflows/linux.yml'
- '.github/workflows/sonarcloud.yml'
Expand Down
2 changes: 2 additions & 0 deletions .azure/azure-pipelines-win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ trigger:
- '*'
exclude:
- '.azure/azure-pipelines-android.yml'
- '.azure/azure-pipelines-alpine.yml'
- '.azure/cmake-android.yml'
- '.azure/azure-pipelines-mac.yml'
- '.azure/azure-pipelines-vcpkg.yml'
- '.azure/Dockerfile.azure-alpine'
- '.circleci/config.yml'
- '.github/workflows/linux.yml'
- '.github/workflows/sonarcloud.yml'
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
| | Build Status |
|---|---|
| <img src="https://www.kernel.org/theme/images/logos/tux.png" height="30" alt=""> **Linux** | [![FluidSynth Linux](https://github.com/FluidSynth/fluidsynth/workflows/FluidSynth%20Linux/badge.svg)](https://github.com/FluidSynth/fluidsynth/actions?query=workflow%3A%22FluidSynth+Linux%22) |
| <img src="https://cdn.pling.com/img//hive/content-pre1/112422-1.png" height="25" alt=""> **FreeBSD** | [![Build Status](https://api.cirrus-ci.com/github/FluidSynth/fluidsynth.svg?branch=master)](https://cirrus-ci.com/github/FluidSynth/fluidsynth) |
| <img src="https://raw.githubusercontent.com/docker-library/docs/781049d54b1bd9b26d7e8ad384a92f7e0dcb0894/alpine/logo.png" height="25" alt=""> **Alpine** (musl) | [![Fluidsynth Alpine](https://dev.azure.com/tommbrt/tommbrt/_apis/build/status%2FFluidSynth.fluidsynth.alpine?branchName=master)](https://dev.azure.com/tommbrt/tommbrt/_build/latest?definitionId=12&branchName=alpine) |
| <img src="https://www.freebsd.org/gifs/daemon_hammer.jpg" height="30" alt=""> **FreeBSD** | [![Build Status](https://api.cirrus-ci.com/github/FluidSynth/fluidsynth.svg?branch=master)](https://cirrus-ci.com/github/FluidSynth/fluidsynth) |
| <img src="https://www.microsoft.com/windows/favicon.ico" height="25" alt=""> **Windows** | [![Build Status](https://dev.azure.com/tommbrt/tommbrt/_apis/build/status/FluidSynth.fluidsynth.Win?branchName=master)](https://dev.azure.com/tommbrt/tommbrt/_build/latest?definitionId=3&branchName=master) |
| <img src="https://www.microsoft.com/windows/favicon.ico" height="25" alt=""> **Windows (vcpkg)** | [![Build Status](https://dev.azure.com/tommbrt/tommbrt/_apis/build/status/FluidSynth.fluidsynth.vcpkg?branchName=master)](https://dev.azure.com/tommbrt/tommbrt/_build/latest?definitionId=6&branchName=master) |
| <img src="https://www.apple.com/favicon.ico" height="30" alt=""> **MacOSX** | [![Build Status](https://dev.azure.com/tommbrt/tommbrt/_apis/build/status/FluidSynth.fluidsynth.macOS?branchName=master)](https://dev.azure.com/tommbrt/tommbrt/_build/latest?definitionId=5&branchName=master) |
Expand Down

0 comments on commit e847d43

Please sign in to comment.