File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / miniupnpd / .github / workflows / i586-mingw32msvc.yml
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Wed Sep 27 11:25:11 2023 UTC (15 months ago) by misho
Branches: miniupnpd, MAIN
CVS tags: v2_3_3p0, HEAD
Version 2.3.3p0

name: i586-mingw32msvc

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3

      - 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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>