public inbox for cygwin-cvs@sourceware.org help / color / mirror / Atom feed
From: Jon TURNEY <jturney@sourceware.org> To: cygwin-cvs@sourceware.org, newlib-cvs@sourceware.org Subject: [newlib-cygwin] Cygwin: Extend GitHub workflow to also build on Windows Date: Tue, 16 Nov 2021 18:00:31 +0000 (GMT) [thread overview] Message-ID: <20211116180031.EFC4E385B833@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=287cb02f69874cd0ebc10c606d71585d57c5e260 commit 287cb02f69874cd0ebc10c606d71585d57c5e260 Author: Jon Turney <jon.turney@dronecode.org.uk> Date: Thu Apr 29 20:16:48 2021 +0100 Cygwin: Extend GitHub workflow to also build on Windows Diff: --- .github/workflows/cygwin.yml | 64 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/.github/workflows/cygwin.yml b/.github/workflows/cygwin.yml index f9a9a7ae5..524a9a3b8 100644 --- a/.github/workflows/cygwin.yml +++ b/.github/workflows/cygwin.yml @@ -46,3 +46,67 @@ jobs: - run: make -C build/*/newlib info man - run: make -C build install - run: make -C build/*/newlib install-info install-man + + windows-build: + runs-on: windows-latest + strategy: + fail-fast: false + matrix: + include: + - pkgarch: x86_64 + - pkgarch: i686 + name: Windows native ${{ matrix.pkgarch }} + + steps: + # checkout action uses the native git (we can avoid this messing up line + # endings, but this could still be dangerous e.g if we need symlinks in the + # repo) + - run: git config --global core.autocrlf input + - uses: actions/checkout@v2 + + # install cygwin and build tools + - name: Install Cygwin + uses: cygwin/cygwin-install-action@master + with: + platform: ${{ matrix.pkgarch }} + packages: >- + autoconf, + automake, + cocom, + dblatex, + dejagnu, + docbook-xml45, + docbook-xsl, + docbook2X, + gcc-g++, + gettext-devel, + libiconv, + libiconv-devel, + make, + mingw64-${{ matrix.pkgarch }}-gcc-g++, + mingw64-${{ matrix.pkgarch }}-zlib, + patch, + perl, + python38-lxml, + python38-ply, + texlive-collection-fontsrecommended, + texlive-collection-latexrecommended, + texlive-collection-pictures, + xmlto, + zlib-devel + + # build + - name: Build Cygwin + run: >- + export PATH=/usr/bin:$(cygpath ${SYSTEMROOT})/system32 && + mkdir build install && + (cd winsup; ./autogen.sh) && + cd build && + ../configure --prefix=$(realpath $(pwd)/../install) -v && + export MAKEFLAGS=-j$(ncores) && + make && + make install && + (cd */newlib; make info man) && + (cd */newlib; make install-info install-man) && + (cd */winsup; test "${{ matrix.pkgarch }}" != 'x86_64' || make check || true) + shell: C:\cygwin\bin\bash.exe --noprofile --norc -eo pipefail '{0}'
reply other threads:[~2021-11-16 18:00 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20211116180031.EFC4E385B833@sourceware.org \ --to=jturney@sourceware.org \ --cc=cygwin-cvs@sourceware.org \ --cc=newlib-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).