summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Green <green@moxielogic.com>2021-07-05 07:33:49 -0400
committerAnthony Green <green@moxielogic.com>2021-07-05 07:33:49 -0400
commit21f16625fef2a52851299c5fd87e3d9df1210395 (patch)
tree6446d4bb3e9a1eb0f8e1c4d40aa28141d45acc40
parent111221d64934fa1b82fefa1d6b205c840ce1e382 (diff)
downloadlibffi-21f16625fef2a52851299c5fd87e3d9df1210395.tar.gz
More build options
-rw-r--r--.github/workflows/build.yml25
1 files changed, 11 insertions, 14 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 60c5031..eae92e2 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -15,7 +15,7 @@ on:
jobs:
build-sim:
- name: Build and test libffi in containers
+ name: Build & test
runs-on: ubuntu-latest
strategy:
@@ -26,10 +26,16 @@ jobs:
RUNTESTFLAGS: "--target_board powerpc-eabisim"
- HOST: "or1k-elf"
RUNTESTFLAGS: "--target_board or1k-sim"
+ - HOST: "m32r-elf"
+ RUNTESTFLAGS: "--target_board m32-sim"
+ - HOST: "bfin-elf"
+ RUNTESTFLAGS: "--target_board bfin-sim"
- MEVAL: "export PATH=/opt/moxielogic/bin:$PATH && CC=moxie-elf-gcc && CXX=moxie-elf-g++"
HOST: "moxie-elf"
LDFLAGS: "-Tsim.ld"
RUNTESTFLAGS: "--target_board moxie-sim"
+ - CONFIGURE_OPTIONS: "--disable-shared"
+ - CONFIGURE_OPTIONS: "--enable-shared"
steps:
- uses: actions/checkout@v2
@@ -39,18 +45,14 @@ jobs:
HOST: ${{ matrix.HOST }}
LDFLAGS: ${{ matrix.LDFLAGS }}
RUNTESTFLAGS: ${{ matrix.RUNTESTFLAGS }}
+ CONFIGURE_OPTIONS: ${{ matrix.CONFIGURE_OPTIONS }}
run: |
- set -x
if test x"$MEVAL" != x; then eval ${MEVAL}; fi
- echo $HOST
- echo $MEVAL
- env
- pwd
./.ci/install.sh
./.ci/build.sh
build:
- name: Build and test libffi on cygwin
+ name: Build & test with Cygwin
runs-on: windows-latest
strategy:
@@ -86,7 +88,7 @@ jobs:
shell: C:\tools\cygwin\bin\bash.exe --login --norc -eo pipefail -o igncr '{0}'
build-msvc:
- name: Build and test libffi with Visual C++
+ name: Build & test with Visual C++
runs-on: windows-latest
strategy:
@@ -105,12 +107,8 @@ jobs:
- name: Build and test
run: |
- set -x
- echo "===================================================="
dos2unix $(cygpath $RUNNER_WORKSPACE)/libffi/.ci/msvs-detect
- $(cygpath $RUNNER_WORKSPACE)/libffi/.ci/msvs-detect --arch=x64 --with-assembler
- echo "===================================================="
- find "/cygdrive/c/Program Files (x86)/Microsoft Visual Studio" -name \*.exe
+ # $(cygpath $RUNNER_WORKSPACE)/libffi/.ci/msvs-detect --arch=x64 --with-assembler
export PATH=$PATH:"/cygdrive/c/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.16.27023/bin/HostX64/x64"
cd $(cygpath $RUNNER_WORKSPACE)/libffi
wget https://rl.gl/cli/rlgl-windows-amd64.zip
@@ -124,7 +122,6 @@ jobs:
autoreconf -f -v -i
./configure CC="$(pwd)/msvcc.sh -m64" CXX="$(pwd)/msvcc.sh -m64" LD='link' CPP='cl -nologo -EP' CXXCPP='cl -nologo -EP' CPPFLAGS='-DFFI_BUILDING_DLL' AR='$(pwd)/.ci/ar-lib lib' NM='dumpbin -symbols' STRIP=':' --build=$BUILD --host=$HOST $DEBUG_ARG $SHARED_ARG || cat */config.log
find . -name libtool\*|xargs dos2unix
- env
make
cp $(find . -name 'libffi-?.dll') x86_64-pc-cygwin/testsuite/
TERM=none DEJAGNU=$(pwd)/.ci/site.exp BOARDSDIR=$(pwd)/.ci make check || true