summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Green <green@moxielogic.com>2022-09-28 22:12:31 -0400
committerAnthony Green <green@moxielogic.com>2022-09-28 22:12:31 -0400
commit9186672c7a0ffa2328b37545deb21aa0802f3e4f (patch)
tree62a63647cb179ecaef833af977b191640b867b34
parent9144810245e7528bb59c325f63f7f945a899f73c (diff)
downloadlibffi-master.tar.gz
clang on windowsHEADmaster
-rw-r--r--.github/workflows/build.yml53
1 files changed, 53 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 1edfd48..6c07087 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -299,6 +299,59 @@ jobs:
--policy=https://github.com/libffi/rlgl-policy.git $(find . -name libffi.log)
shell: msys2 {0}
+ build-msys2-clang:
+
+ runs-on: windows-latest
+
+ strategy:
+ fail-fast: false
+ matrix:
+ include:
+ - MSYSTEM: MINGW32
+ MSYS2_ARCH: i686
+ - MSYSTEM: MINGW64
+ MSYS2_ARCH: x86_64
+ name: ${{ matrix.MSYSTEM }}
+
+ steps:
+ - run: git config --global core.autocrlf input
+ - uses: actions/checkout@v2
+
+ - uses: msys2/setup-msys2@v2
+ with:
+ msystem: ${{ matrix.MSYSTEM }}
+ update: true
+ install: >-
+ base-devel
+ autoconf-wrapper
+ autoconf
+ automake
+ libtool
+ make
+ dejagnu
+ clang
+ mingw-w64-${{ matrix.MSYS2_ARCH }}-gcc
+ mingw-w64-${{ matrix.MSYS2_ARCH }}-gcc-libs
+ unzip
+
+ - run: |
+ set -x
+ cd $(cygpath $RUNNER_WORKSPACE)/libffi
+ wget https://rl.gl/cli/rlgl-windows-amd64.zip
+ unzip rlgl-windows-amd64.zip
+ autoreconf -f -v -i
+ CC=clang CXX=clang ./configure
+ make
+ TERM=none DEJAGNU=$(pwd)/.ci/site.exp BOARDSDIR=$(pwd)/.ci make check || true
+ ./rlgl/rlgl.exe l --key=0LIBFFI-0LIBFFI-0LIBFFI-0LIBFFI https://rl.gl
+ ./rlgl/rlgl.exe e \
+ -l project=libffi \
+ -l sha=${GITHUB_SHA:0:7} \
+ -l CC=clang \
+ -l host=x86_64-pc-cygwin \
+ --policy=https://github.com/libffi/rlgl-policy.git $(find . -name libffi.log)
+ shell: msys2 {0}
+
build-macos:
runs-on: ${{ matrix.platform }}