blob: 35bd7773f7a076461574e563d3ae5d28340f895b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
name: 'Setup msys2'
inputs:
arch:
required: true
runs:
using: "composite"
steps:
- name: Set up MSYS2
id: set-up-msys2
uses: msys2/setup-msys2@v2
with:
msystem: ${{ inputs.arch == 'x86' && 'mingw32' || 'ucrt64' }}
install: make mingw-w64-${{ inputs.arch == 'x86' && 'i686' || 'ucrt-x86_64' }}-gcc patch
- name: Add MSYS2 toolchain to PATH
shell: msys2 {0}
run: echo "${{ steps.set-up-msys2.outputs.msys2-location }}/${MSYSTEM,,}/bin" >> "$GITHUB_PATH"
|