From 4f11f1358fabb9ae5d6ecaafc4670f770a4505a2 Mon Sep 17 00:00:00 2001 From: Lassi Kortela Date: Mon, 14 Oct 2019 17:53:37 +0300 Subject: [PATCH] Add msys-based Windows build to CI --- .cirrus.yml | 9 +++++++++ README.adoc | 1 + scripts/build.sh | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.cirrus.yml b/.cirrus.yml index 0fbb10c..49f0f56 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -50,3 +50,12 @@ cygwin_task: - c:\tools\cygwin\cygwinsetup -q -P binutils,gcc-core compile_script: - c:\tools\cygwin\bin\bash --login "%CD%\scripts\build.sh" +msys_task: + windows_container: + image: cirrusci/windowsservercore:cmake + os_version: 2019 + setup_script: + - set PATH=c:\tools\msys64\bin;c:\tools\msys64\usr\bin;%PATH% + - pacman --noconfirm -S gcc + compile_script: + - c:\tools\msys64\usr\bin\bash --login "%CD%\scripts\build.sh" diff --git a/README.adoc b/README.adoc index 1407ee0..c5f4647 100644 --- a/README.adoc +++ b/README.adoc @@ -23,6 +23,7 @@ system C compiler. 64-bit and 32-bit builds work. Supported operating systems: ** Alpine Linux (gcc) ** Void Linux (gcc) ** Cygwin (gcc) + ** Msys (gcc) * BSD ** FreeBSD (clang) ** OpenBSD (clang) diff --git a/scripts/build.sh b/scripts/build.sh index 47b9302..3bbd214 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -2,7 +2,7 @@ set -eu os="$(uname | tr A-Z- a-z_)" case $os in -cygwin*) +cygwin*|msys*) os=linux ;; esac