From 1cd898f5e8c1defcc0b35f18531d5e03f1854cc5 Mon Sep 17 00:00:00 2001 From: vampirefrog Date: Mon, 11 Nov 2024 22:25:29 +0200 Subject: [PATCH] Create msys-mingw64-release.yml --- .github/workflows/msys-mingw64-release.yml | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/msys-mingw64-release.yml diff --git a/.github/workflows/msys-mingw64-release.yml b/.github/workflows/msys-mingw64-release.yml new file mode 100644 index 0000000..6c030a4 --- /dev/null +++ b/.github/workflows/msys-mingw64-release.yml @@ -0,0 +1,35 @@ +name: Build and Release + +on: + push: + tags: + - 'v*' + +jobs: + msys2-mingw64: + runs-on: windows-latest + defaults: + run: + shell: msys2 {0} + steps: + - uses: actions/checkout@v4 + with: + submodules: true + - uses: msys2/setup-msys2@v2 + with: + msystem: MINGW64 + update: true + install: git make pkg-config mingw64/mingw-w64-x86_64-gcc mingw64/mingw-w64-x86_64-portaudio mingw64/mingw-w64-x86_64-nsis bison flex zip unzip + - name: Build with make + run: make + - name: Copy DLLs over + run: cp $MSYSTEM_PREFIX/bin/libportaudio.dll . + - name: Install NSIS EnvVar plugin + run: (cd $MSYSTEM_PREFIX/share/nsis && wget https://nsis.sourceforge.io/mediawiki/images/7/7f/EnVar_plugin.zip && unzip EnVar_plugin.zip && cp Plugins/amd64-unicode/EnVar.dll Plugins/unicode/EnVar.dll) + - name: Create NSIS installer + run: makensis mdxtools.nsi + - name: Release + uses: softprops/action-gh-release@v2 + if: startsWith(github.ref, 'refs/tags/') + with: + files: mdxtools-installer.exe