diff options
author | Anthony Green <green@moxielogic.com> | 2022-09-14 22:54:10 -0400 |
---|---|---|
committer | Anthony Green <green@moxielogic.com> | 2022-09-14 22:54:10 -0400 |
commit | 317c9b6a13d3414c510b27bdc7ce57be56399df5 (patch) | |
tree | 9055e53f4a8f16e6337693eb7bb3c95f168a9cfa /.github | |
parent | 19e8354ff9b608b5410451caef6a9773375de005 (diff) | |
download | libffi-317c9b6a13d3414c510b27bdc7ce57be56399df5.tar.gz |
Add mingw32 testing
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build.yml | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 43f551a..fd7e108 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -201,6 +201,44 @@ jobs: exit $? build: + name: Build & test with MingW32 + runs-on: windows-latest + + strategy: + fail-fast: false + matrix: + platform: [windows-latest] + + steps: + - run: git config --global core.autocrlf input + + - uses: actions/checkout@v2 + + - name: Set up Cygwin + uses: egor-tensin/setup-cygwin@v3 + with: + platform: x64 + packages: wget make dejagnu automake autoconf libtool texinfo dos2unix 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=i686-w64-mingw32-gcc CXX=i686-w64-mingw32-g++ ./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=i686-w64-mingw32-gcc \ + -l host=x86_64-pc-cygwin \ + --policy=https://github.com/libffi/rlgl-policy.git $(find . -name libffi.log) + shell: C:\tools\cygwin\bin\bash.exe --login --norc -eo pipefail -o igncr '{0}' + + build: name: Build & test with Cygwin runs-on: windows-latest |