summaryrefslogtreecommitdiff
path: root/.github/workflows/build.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/build.yml')
-rw-r--r--.github/workflows/build.yml43
1 files changed, 41 insertions, 2 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 8c4b85a..1590df3 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -2,6 +2,10 @@ name: Build
on: [push, pull_request]
+concurrency:
+ group: ${{ github.workflow }}-${{ github.job }}-${{ github.ref }}
+ cancel-in-progress: true
+
jobs:
Ubuntu:
@@ -14,8 +18,8 @@ jobs:
make
make check
- Ubuntu-18-04:
- runs-on: ubuntu-18.04
+ Ubuntu-20-04:
+ runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Build Ubuntu
@@ -97,3 +101,38 @@ jobs:
meson setup build
meson compile -C build
meson test -C build
+
+ msys-meson:
+ name: 'msys-meson ${{ matrix.sys.abi }} ${{ matrix.library }}'
+ runs-on: windows-latest
+ defaults:
+ run:
+ shell: msys2 {0}
+ strategy:
+ matrix:
+ sys:
+ - { abi: mingw32, env: i686, compiler: gcc }
+ - { abi: mingw64, env: x86_64, compiler: gcc }
+ - { abi: ucrt64, env: ucrt-x86_64, compiler: gcc }
+ - { abi: clang32, env: clang-i686, compiler: clang }
+ - { abi: clang64, env: clang-x86_64, compiler: clang }
+ library: ['shared', 'static']
+ fail-fast: false
+ steps:
+ - name: Use MinGW from MSYS
+ uses: msys2/setup-msys2@v2
+ with:
+ msystem: ${{matrix.sys.abi}}
+ update: true
+ pacboy: >-
+ toolchain:p
+ meson:p
+ ninja:p
+
+ - uses: actions/checkout@v2
+
+ - name: Build Windows
+ run: |
+ meson setup build -Dfastfloat=true -Dthreaded=true -Dsamples=true -Ddefault_library=${{ matrix.library }}
+ meson compile -C build
+ meson test -C build