summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOneric <oneric@oneric.stub>2021-05-04 21:49:39 +0200
committerOneric <oneric@oneric.stub>2021-05-11 15:55:30 +0200
commit991f92c3e4fa02529b01038b01631e55725bc4c1 (patch)
treeb8d5f76a24d449f7aa3a27270f4103c67ab83d11
parenta2e56bf9a36f84e094067cf45d2f1f9dbd57f291 (diff)
downloadlibass-991f92c3e4fa02529b01038b01631e55725bc4c1.tar.bz2
libass-991f92c3e4fa02529b01038b01631e55725bc4c1.tar.xz
ci/gha: add Windows build
-rw-r--r--.github/workflows/ghci.yml49
1 files changed, 37 insertions, 12 deletions
diff --git a/.github/workflows/ghci.yml b/.github/workflows/ghci.yml
index 236d60e..eab244e 100644
--- a/.github/workflows/ghci.yml
+++ b/.github/workflows/ghci.yml
@@ -24,25 +24,50 @@ jobs:
- os: ubuntu-18.04
cc: clang
do_coverity: yes
+ # Add an additional Windows build (MinGW-gcc via MSYS2) with no extras
+ - os: windows-2019
+ cc: gcc
+ shell: 'msys2 {0}'
+
+ defaults:
+ run:
+ shell: ${{ matrix.shell || 'bash' }}
steps:
- name: checkout code
uses: actions/checkout@v2
+ - name: Setup MSys2
+ uses: msys2/setup-msys2@v2
+ if: matrix.os == 'windows-2019'
+ with:
+ msystem: MINGW64
+ update: false
+
- name: install deps
run: |
- if echo "${{ matrix.os }}" | grep -qE '^macos-' ; then
- #brew update
- # fontconfig, freetype, autoconf and libtool are preinstalled
- # and `brew install` fails if a non-uptodate version is already installed
- #brew upgrade fontconfig freetype autoconf libtool
- brew install automake fribidi harfbuzz nasm
- else
- sudo apt-get update #&& sudo apt-get upgrade
- sudo apt-get install -y \
- libfontconfig1-dev libfreetype6-dev libfribidi-dev \
- libharfbuzz-dev nasm ${{ matrix.cc }}
- fi
+ case "${{ matrix.os }}" in
+ macos-*)
+ #brew update
+ # fontconfig, freetype, autoconf and libtool are preinstalled
+ # and `brew install` fails if a non-uptodate version is already installed
+ #brew upgrade fontconfig freetype autoconf libtool
+ brew install automake fribidi harfbuzz nasm
+ ;;
+ windows-*)
+ pre="mingw-w64-x86_64"
+ pacman --noconfirm -S \
+ automake autoconf nasm make \
+ $pre-libtool $pre-pkg-config $pre-gcc \
+ $pre-fribidi $pre-freetype $pre-harfbuzz $pre-fontconfig
+ ;;
+ *)
+ sudo apt-get update #&& sudo apt-get upgrade
+ sudo apt-get install -y \
+ libfontconfig1-dev libfreetype6-dev libfribidi-dev \
+ libharfbuzz-dev nasm ${{ matrix.cc }}
+ ;;
+ esac
- name: configure
run: ./autogen.sh && CC="${{ matrix.cc }}" ./configure