1name: cross compile with mingw-w64 2 3on: 4 push: 5 branches: [ master ] 6 pull_request: 7 branches: [ master ] 8 9jobs: 10 cross-compile: 11 strategy: 12 fail-fast: false 13 matrix: 14 build-machine-os: [ubuntu-18.04, ubuntu-20.04, macos-10.15, macos-11] 15 target: [i686-w64-mingw32,x86_64-w64-mingw32] 16 17 runs-on: ${{ matrix.build-machine-os }} 18 19 steps: 20 - uses: actions/checkout@v2 21 22 - run: brew install mingw-w64 gcc make automake autoconf file 23 24 - run: ./autogen.sh 25 26 - name: Run ./configure ... 27 run: | 28 ./configure \ 29 --host=${{ matrix.target }} \ 30 --disable-iconv \ 31 --disable-xml \ 32 --disable-json \ 33 --disable-yaml \ 34 --disable-pcre2 \ 35 CC=${{ matrix.target }}-gcc \ 36 CFLAGS='-v' \ 37 AR=${{ matrix.target }}-ar \ 38 RANLIB=${{ matrix.target }}-ranlib \ 39 WINDRES=${{ matrix.target }}-windres 40 41 - run: make V=1 42 43 - run: file ctags.exe | grep PE32 44