summaryrefslogtreecommitdiff
path: root/.github/actions
diff options
context:
space:
mode:
Diffstat (limited to '.github/actions')
-rw-r--r--.github/actions/setup-msys2/action.yml18
1 files changed, 18 insertions, 0 deletions
diff --git a/.github/actions/setup-msys2/action.yml b/.github/actions/setup-msys2/action.yml
new file mode 100644
index 0000000..72c6e38
--- /dev/null
+++ b/.github/actions/setup-msys2/action.yml
@@ -0,0 +1,18 @@
+name: 'Setup msys2'
+inputs:
+ arch:
+ required: true
+runs:
+ using: "composite"
+ steps:
+ - name: Set up MSYS2
+ uses: msys2/setup-msys2@v2
+ with:
+ release: false
+ msystem: ${{ inputs.arch == 'x86' && 'mingw32' || 'ucrt64' }}
+ install: make mingw-w64-${{ inputs.arch == 'x86' && 'i686' || 'ucrt-x86_64' }}-gcc
+
+ - name: Set PATH for x86
+ if: ${{ inputs.arch == 'x86' }}
+ shell: msys2 {0}
+ run: echo "C:/msys64/mingw32/bin" >> "$GITHUB_PATH"