diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2022-04-20 21:50:57 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2022-04-20 21:50:57 -0400 |
commit | a98967fccccfcddaffb3d61023a0224ea646d685 (patch) | |
tree | fee7dbb03cfb8d50e6e9c46fde5d73fbc57466e1 /.github/workflows/ci.yml | |
parent | 32e45404648ac260b0559add19758af0c0fd8ce8 (diff) | |
download | abaddon-portaudio-a98967fccccfcddaffb3d61023a0224ea646d685.tar.gz abaddon-portaudio-a98967fccccfcddaffb3d61023a0224ea646d685.zip |
add ci run for minimal dependencies
Diffstat (limited to '.github/workflows/ci.yml')
-rw-r--r-- | .github/workflows/ci.yml | 46 |
1 files changed, 38 insertions, 8 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index adbf8d7..f5ec12e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,6 +9,10 @@ jobs: strategy: matrix: buildtype: [Debug, RelWithDebInfo, MinSizeRel] + mindeps: [false] + include: + - buildtype: RelWithDebInfo + mindeps: true defaults: run: shell: msys2 {0} @@ -17,12 +21,23 @@ jobs: with: submodules: true - - name: Setup MSYS2 - uses: msys2/setup-msys2@v2 + - name: Setup MSYS2 (1) + uses: haya14busa/action-cond@v1 + id: setupmsys with: - msystem: mingw64 - update: true - install: >- + cond: ${{ matrix.mindeps == true }} + if_true: >- + git + make + mingw-w64-x86_64-toolchain + mingw-w64-x86_64-cmake + mingw-w64-x86_64-ninja + mingw-w64-x86_64-sqlite3 + mingw-w64-x86_64-nlohmann-json + mingw-w64-x86_64-curl + mingw-w64-x86_64-zlib + mingw-w64-x86_64-gtkmm3 + if_false: >- git make mingw-w64-x86_64-toolchain @@ -35,6 +50,13 @@ jobs: mingw-w64-x86_64-gtkmm3 mingw-w64-x86_64-libhandy + - name: Setup MSYS2 (2) + uses: msys2/setup-msys2@v2 + with: + msystem: mingw64 + update: true + install: ${{ steps.setupmsys.outputs.value }} + - name: Build run: | cmake -GNinja -Bbuild -DCMAKE_BUILD_TYPE=${{ matrix.buildtype }} @@ -50,12 +72,20 @@ jobs: cp -r /mingw64/lib/gdk-pixbuf-2.0 build/artifactdir/lib cp -r res/css res/res res/fonts build/artifactdir/bin cp /mingw64/share/glib-2.0/schemas/gschemas.compiled build/artifactdir/share/glib-2.0/schemas - cat "ci/msys-deps.txt" | sed 's/\r$//' | xargs -I % cp /mingw64% build/artifactdir/bin + cat "ci/msys-deps.txt" | sed 's/\r$//' | xargs -I % cp /mingw64% build/artifactdir/bin || : - - name: Upload build + - name: Upload build (1) + uses: haya14busa/action-cond@v1 + id: buildname + with: + cond: ${{ matrix.mindeps == true }} + if_true: "${{ matrix.buildtype }}-mindeps" + if_false: "${{ matrix.buildtype }}" + + - name: Upload build (2) uses: actions/upload-artifact@v2 with: - name: build-windows-msys2-${{ matrix.buildtype }} + name: build-windows-msys2-${{ steps.buildname.outputs.value }} path: build/artifactdir mac: |