summaryrefslogtreecommitdiff
path: root/.github/actions/setup-msys2/action.yml
blob: 60aa1cb31e1387311b964f6718eaf4c651ad825a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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: Set PATH for x86
    if: ${{ inputs.arch == 'x86' }}
    shell: msys2 {0}
    run: echo "${{ steps.set-up-msys2.outputs.msys2-location }}/mingw32/bin" >> "$GITHUB_PATH"