From 0c2f4b8d2f68b30345c36da72b09d2f653129417 Mon Sep 17 00:00:00 2001 From: Reinhold Gschweicher Date: Tue, 18 Feb 2020 10:27:41 +0100 Subject: [PATCH] actions: buid with mingw on windows - mingw build without backends - ninja build --- .github/workflows/main.yml | 35 +++++++++++++++++++++++++---------- 1 file changed, 25 insertions(+), 10 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 92971b5..5253aef 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,15 +1,30 @@ name: CI on: [push] - jobs: - build: - - runs-on: ubuntu-latest - + job: + name: ${{ matrix.os }}-cmake-build + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, windows-latest] + include: + - os: windows-latest + CC: gcc + steps: - - uses: actions/checkout@v2 - - name: install alsa pulse and jack - run: sudo apt-get -y install libasound2-dev libpulse-dev libjack-dev - - name: run-cmake - uses: lukka/run-cmake@v0.10 + - uses: actions/checkout@v2 + - name: install alsa pulse and jack + run: sudo apt-get -y install libasound2-dev libpulse-dev libjack-dev + if: "contains( matrix.os, 'ubuntu')" + - name: run-cmake + uses: lukka/run-cmake@v0.10 + if: "!contains( matrix.os, 'windows')" + - name: Run CMake+MinGW-w64 + uses: lukka/run-cmake@v0.10 + if: "contains( matrix.os, 'windows')" + with: + buildDirectory: '${{ runner.workspace }}/b/mingw-w64' + cmakeListsOrSettingsJson: CMakeListsTxtAdvanced + cmakeAppendedArgs: '-G "Ninja" -DWITH_ALSA=No -DWITH_PULSEAUDIO=No -DWITH_JACK=No'