public inbox for newlib-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: Add github action to cross-build on Fedora Date: Sat, 29 Aug 2020 14:42:18 +0000 (GMT) [thread overview] Message-ID: <20200829144218.DD514385043D@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=5b67246301dfe2cce50939273889f59010be27a5 commit 5b67246301dfe2cce50939273889f59010be27a5 Author: Jon Turney <jon.turney@dronecode.org.uk> Date: Sun Aug 23 17:49:42 2020 +0100 Cygwin: Add github action to cross-build on Fedora This helps avoid unpleasant surprises when we come to actually make a release (which are cross-built in this manner) Diff: --- .github/workflows/cygwin.yml | 45 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/.github/workflows/cygwin.yml b/.github/workflows/cygwin.yml new file mode 100644 index 000000000..cdad8e67b --- /dev/null +++ b/.github/workflows/cygwin.yml @@ -0,0 +1,45 @@ +name: cygwin + +on: push + +jobs: + fedora-build: + runs-on: ubuntu-latest + container: fedora:latest + strategy: + fail-fast: false + matrix: + include: + - target: x86_64-pc-cygwin + pkgarch: 64 + - target: i686-pc-cygwin + pkgarch: 32 + name: Fedora cross ${{ matrix.target }} + + steps: + - uses: actions/checkout@v2 + + # install build tools + - run: dnf install -y make patch perl + - run: dnf install -y mingw${{ matrix.pkgarch }}-gcc-c++ mingw${{ matrix.pkgarch }}-winpthreads-static mingw${{ matrix.pkgarch }}-zlib-static + + # cocom isn't packaged in Fedora, so we install from a 3rd party repo + - run: dnf install -y https://github.com/rpmsphere/noarch/raw/master/r/rpmsphere-release-$(rpm -E %fedora)-1.noarch.rpm + - run: dnf install -y cocom + + # install cross-cygwin toolchain and libs from copr + - run: dnf install -y dnf-plugins-core + - run: dnf copr enable -y yselkowitz/cygwin + - run: dnf install -y cygwin${{ matrix.pkgarch }}-gcc-c++ cygwin${{ matrix.pkgarch }}-gettext cygwin${{ matrix.pkgarch }}-libbfd cygwin${{ matrix.pkgarch }}-libiconv cygwin${{ matrix.pkgarch }}-zlib + + # install doc tools + - run: dnf install -y dblatex docbook2X docbook-xsl xmlto + - run: dnf install -y python3 python3-lxml python3-ply + + # build + - run: mkdir build install + - run: cd build && ../configure --target=${{ matrix.target }} --prefix=$(realpath $(pwd)/../install) + - run: make -C build + - run: make -C build/*/newlib info man + - run: make -C build install + - run: make -C build/*/newlib install-info install-man
reply other threads:[~2020-08-29 14:42 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=20200829144218.DD514385043D@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).