summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2024-06-14 09:13:42 +0100
committerMichael Williamson <mike@zwobble.org>2024-06-14 10:26:23 +0100
commit91e3218eaa20be86c6485d85adbf4b21d459f7fe (patch)
treed460c81fe20786aa769dce8a17d89cb091f56169 /.github/workflows
parent45a641316a01b4861c887caf08058b2d48dfdc17 (diff)
Extract action to set up msys2
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build.yml13
1 files changed, 3 insertions, 10 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 0ff05e7..418829a 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -160,17 +160,10 @@ jobs:
with:
python-version: '3.11'
- - name: set up MSYS2
- uses: msys2/setup-msys2@v2
+ - name: Set up MSYS2
+ uses: ./.github/actions/setup-msys2
with:
- release: false
- msystem: ${{ matrix.arch == 'x86' && 'mingw32' || 'ucrt64' }}
- install: make mingw-w64-${{ matrix.arch == 'x86' && 'i686' || 'ucrt-x86_64' }}-gcc
-
- - name: Set PATH for x86
- if: ${{ matrix.arch == 'x86' }}
- shell: msys2 {0}
- run: echo "C:/msys64/mingw32/bin" >> "$GITHUB_PATH"
+ arch: ${{ matrix.arch }}
- name: Print build identifiers
run: |