Merge pull request #3997 from masatake/pascal--line-comment #1179
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: cross compile with mingw-w64 on ubuntu | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
cross-compile: | |
strategy: | |
fail-fast: false | |
matrix: | |
build-machine-os: [ubuntu-22.04, ubuntu-20.04] | |
target: [i686-w64-mingw32,x86_64-w64-mingw32] | |
runs-on: ${{ matrix.build-machine-os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- run: sudo apt-get -y -o APT::Immediate-Configure=false update | |
- run: sudo apt-get -y -o APT::Immediate-Configure=false install mingw-w64 gcc make automake autoconf file | |
- run: ./autogen.sh | |
- name: Run ./configure ... | |
run: | | |
./configure \ | |
--host=${{ matrix.target }} \ | |
--disable-iconv \ | |
--disable-xml \ | |
--disable-json \ | |
--disable-yaml \ | |
--disable-pcre2 \ | |
CC=${{ matrix.target }}-gcc \ | |
CFLAGS='-v' \ | |
AR=${{ matrix.target }}-ar \ | |
RANLIB=${{ matrix.target }}-ranlib \ | |
WINDRES=${{ matrix.target }}-windres | |
- run: make V=1 | |
- run: file ctags.exe | grep PE32 |