Bump microsoft/setup-msbuild from 1 to 2 #23
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Mingw Build | |
on: [ push, pull_request ] | |
jobs: | |
build_linux: | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 2 | |
matrix: | |
build_platform: ["64", "32"] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install packages via apt | |
run: | | |
sudo apt-get -qq update | |
sudo apt-get -qq install -y mingw-w64 cppcheck | |
(for alt in i686-w64-mingw32-g++ i686-w64-mingw32-gcc x86_64-w64-mingw32-g++ x86_64-w64-mingw32-gcc; do sudo update-alternatives --set $alt /usr/bin/$alt-posix; done); | |
- name: build x86 | |
if: matrix.build_platform == '32' | |
run: make ARCH=i686-w64-mingw32 | |
- name: build x64 | |
if: matrix.build_platform == '64' | |
run: make ARCH=x86_64-w64-mingw32 | |
- name: Archive artifacts for x86 | |
if: matrix.build_platform == '32' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: nppsnippets_dll_linux_x32 | |
path: NppSnippets.dll | |
- name: Archive artifacts for x64 | |
if: matrix.build_platform == '64' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: nppsnippets_dll_linux_x64 | |
path: NppSnippets.dll | |