Skip to content

Instantly share code, notes, and snippets.

@geoffreygarrett
Created July 3, 2023 17:30
Show Gist options
  • Save geoffreygarrett/06765936df5b4687d320491517ca5d47 to your computer and use it in GitHub Desktop.
Save geoffreygarrett/06765936df5b4687d320491517ca5d47 to your computer and use it in GitHub Desktop.
pkg-config-github-actions-windows
- name: Setup PkgConfig (Windows)
if: runner.os == 'Windows'
env:
PKG_CONFIG_ZIP: "http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/pkg-config_0.26-1_win32.zip"
GETTEXT_RUNTIME_ZIP: "http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/gettext-runtime_0.18.1.1-2_win32.zip"
GLIB_ZIP: "http://ftp.gnome.org/pub/gnome/binaries/win32/glib/2.28/glib_2.28.8-1_win32.zip"
run: |
curl -LO "${{ env.PKG_CONFIG_ZIP }}"
7z x pkg-config_0.26-1_win32.zip -oC:\MinGW\bin pkg-config.exe
curl -LO "${{ env.GETTEXT_RUNTIME_ZIP }}"
7z x gettext-runtime_0.18.1.1-2_win32.zip -oC:\MinGW\bin intl.dll
curl -LO "${{ env.GLIB_ZIP }}"
7z x glib_2.28.8-1_win32.zip -oC:\MinGW\bin libglib-2.0-0.dll
echo "C:\MinGW\bin" >> $GITHUB_PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment