From 54b3058b876e958a1d38597cc42454f438385b0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pali=20Roh=C3=A1r?= Date: Fri, 6 Aug 2021 16:57:07 +0200 Subject: [PATCH] Add github workflow for i586-mingw32msvc compiler Packages for i586-mingw32msvc compiler are not available in latest Ubuntu, so download them from Ubuntu primary archive on Launchpad. --- .github/workflows/i586-mingw32msvc.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/i586-mingw32msvc.yml diff --git a/.github/workflows/i586-mingw32msvc.yml b/.github/workflows/i586-mingw32msvc.yml new file mode 100644 index 0000000..a750240 --- /dev/null +++ b/.github/workflows/i586-mingw32msvc.yml @@ -0,0 +1,25 @@ +name: i586-mingw32msvc + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: download packages + run: wget -c https://launchpad.net/ubuntu/+archive/primary/+files/mingw32-binutils_2.20-0.2ubuntu1_amd64.deb https://launchpad.net/ubuntu/+archive/primary/+files/mingw32-runtime_3.15.2-0ubuntu1_all.deb https://launchpad.net/ubuntu/+archive/primary/+files/mingw32_4.2.1.dfsg-2ubuntu1_amd64.deb + + - name: install packages + run: sudo dpkg -i mingw32-binutils_2.20-0.2ubuntu1_amd64.deb mingw32-runtime_3.15.2-0ubuntu1_all.deb mingw32_4.2.1.dfsg-2ubuntu1_amd64.deb + + - name: check for correct compiler target + run: "i586-mingw32msvc-gcc -v 2>&1 | grep -q -x 'Target: i586-mingw32msvc'" + + - name: build miniupnpc via i586-mingw32msvc + run: make -C miniupnpc -f Makefile.mingw CC=i586-mingw32msvc-gcc DLLWRAP=i586-mingw32msvc-dllwrap WINDRES=i586-mingw32msvc-windres AR=i586-mingw32msvc-ar