From 21847bcbd52b9ee268541611d01c62d581af281d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Tue, 1 Oct 2024 15:38:05 +0200 Subject: [PATCH] CI: Disable macOS and improve Windows --- .github/workflows/ci.yaml | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a489f354..d88a9994 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -17,7 +17,7 @@ jobs: erlang: - '27' os: - - macos-latest +# - macos-latest - ubuntu-latest - windows-latest extra: ['', 'LEGACY=1'] @@ -34,5 +34,22 @@ jobs: otp-version: ${{ matrix.erlang }} version-type: loose - - name: Run tests - run: ${{ matrix.os == 'macos-latest' && 'gmake' || 'make' }} check -j 8 -k ${{ matrix.extra }} + - name: Setup MSYS2 (Windows) + if: matrix.os == 'windows-latest' + uses: msys2/setup-msys2@v2 + with: + msystem: mingw64 + release: false + update: true + install: >- + git + make + + - name: Run tests (Linux) + if: matrix.os == 'ubuntu-latest' + run: make check -j 8 -k ${{ matrix.extra }} + + - name: Run tests (Windows) + if: matrix.os == 'windows-latest' + shell: msys2 {0} + run: make check -j 8 -k ${{ matrix.extra }}