]> sourceware.org Git - newlib-cygwin.git/blob - .github/workflows/cygwin.yml
Cygwin: Add github action to cross-build on Fedora
[newlib-cygwin.git] / .github / workflows / cygwin.yml
1 name: cygwin
2
3 on: push
4
5 jobs:
6 fedora-build:
7 runs-on: ubuntu-latest
8 container: fedora:latest
9 strategy:
10 fail-fast: false
11 matrix:
12 include:
13 - target: x86_64-pc-cygwin
14 pkgarch: 64
15 - target: i686-pc-cygwin
16 pkgarch: 32
17 name: Fedora cross ${{ matrix.target }}
18
19 steps:
20 - uses: actions/checkout@v2
21
22 # install build tools
23 - run: dnf install -y make patch perl
24 - run: dnf install -y mingw${{ matrix.pkgarch }}-gcc-c++ mingw${{ matrix.pkgarch }}-winpthreads-static mingw${{ matrix.pkgarch }}-zlib-static
25
26 # cocom isn't packaged in Fedora, so we install from a 3rd party repo
27 - run: dnf install -y https://github.com/rpmsphere/noarch/raw/master/r/rpmsphere-release-$(rpm -E %fedora)-1.noarch.rpm
28 - run: dnf install -y cocom
29
30 # install cross-cygwin toolchain and libs from copr
31 - run: dnf install -y dnf-plugins-core
32 - run: dnf copr enable -y yselkowitz/cygwin
33 - 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
34
35 # install doc tools
36 - run: dnf install -y dblatex docbook2X docbook-xsl xmlto
37 - run: dnf install -y python3 python3-lxml python3-ply
38
39 # build
40 - run: mkdir build install
41 - run: cd build && ../configure --target=${{ matrix.target }} --prefix=$(realpath $(pwd)/../install)
42 - run: make -C build
43 - run: make -C build/*/newlib info man
44 - run: make -C build install
45 - run: make -C build/*/newlib install-info install-man
This page took 0.033848 seconds and 5 git commands to generate.