Skip to content

Commit

Permalink
Add MINGWARM64 environment
Browse files Browse the repository at this point in the history
  • Loading branch information
Blackhex committed Sep 10, 2024
1 parent d448828 commit 688453d
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 13 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/Test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ jobs:
run: |
$env:MSYSTEM = 'MSYS'
msys2 ./test.sh MSYS
- name: 🟩 test MINGWARM64
run: |
$env:MSYSTEM = 'MINGWARM64'
msys2 ./test.sh MINGWARM64
- name: 🟦 test MINGW64
run: |
$env:MSYSTEM = 'MINGW64'
Expand Down Expand Up @@ -101,6 +105,11 @@ jobs:
run: |
set MSYSTEM=MSYS
msys2 ./test.sh MSYS
- name: 🟩 test MINGWARM64
shell: cmd
run: |
set MSYSTEM=MINGWARM64
msys2 ./test.sh MINGWARM64
- name: 🟦 test MINGW64
shell: cmd
run: |
Expand Down Expand Up @@ -144,6 +153,10 @@ jobs:
run: msys2 ./test.sh MSYS
env:
MSYSTEM: MSYS
- name: 🟩 test MINGWARM64
run: msys2 ./test.sh MINGWARM64
env:
MSYSTEM: MINGWARM64
- name: 🟦 test MINGW64
run: msys2 ./test.sh MINGW64
env:
Expand Down Expand Up @@ -220,7 +233,7 @@ jobs:


install:
name: 🟦 mingw64 | install ${{ matrix.install }}
name: 🟩 mingwarm64 | install ${{ matrix.install }}
needs: [cache]
strategy:
fail-fast: false
Expand All @@ -239,8 +252,8 @@ jobs:
with:
update: true
install: ${{ matrix.install }}
msystem: mingw64
- run: msys2 ./test.sh mingw64
msystem: mingwarm64
- run: msys2 ./test.sh mingwarm64


defaultclean:
Expand Down Expand Up @@ -454,7 +467,7 @@ jobs:
- id: min
uses: ./matrix
with:
systems: 'mingw32 mingw64 ucrt64 clang64'
systems: 'mingw32 mingw64 mingwarm64 ucrt64 clang64'


msystem:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/Tool.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
systems: >-
mingw32
mingw64
mingwarm64
ucrt64
clang32
clang64
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ branding:
icon: terminal
inputs:
msystem:
description: 'Variant of the environment to set by default: MSYS, MINGW32, MINGW64, UCRT64, CLANG32, CLANG64 or CLANGARM64'
description: 'Variant of the environment to set by default: MSYS, MINGW32, MINGW64, MINGWARM64, UCRT64, CLANG32, CLANG64 or CLANGARM64'
required: false
default: 'MINGW64'
path-type:
Expand Down
1 change: 1 addition & 0 deletions examples/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
include:
- { icon: '⬛', sys: mingw32 }
- { icon: '🟦', sys: mingw64 }
- { icon: '🟩', sys: mingwarm64 }
- { icon: '🟨', sys: ucrt64 }
- { icon: '🟧', sys: clang64 }
name: 🚧${{ matrix.icon }} ${{ matrix.sys }}
Expand Down
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function parseInput() {
let p_location = core.getInput('location');
let p_cache = core.getBooleanInput('cache');

const msystem_allowed = ['MSYS', 'MINGW32', 'MINGW64', 'UCRT64', 'CLANG32', 'CLANG64', 'CLANGARM64'];
const msystem_allowed = ['MSYS', 'MINGW32', 'MINGW64', 'MINGWARM64', 'UCRT64', 'CLANG32', 'CLANG64', 'CLANGARM64'];
if (!msystem_allowed.includes(p_msystem.toUpperCase())) {
throw new Error(`'msystem' needs to be one of ${ msystem_allowed.join(', ') }, got ${p_msystem}`);
}
Expand Down
15 changes: 8 additions & 7 deletions matrix/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ inputs:
description: 'Space separated list of systems to build and test the tool on.'
required: false
type: string
default: 'msys mingw32 mingw64 ucrt64 clang32 clang64'
default: 'msys mingw32 mingw64 mingwarm64 ucrt64 clang32 clang64'
outputs:
jobs:
description: "List of MSYS2 systems to be used in the matrix of other jobs."
Expand All @@ -20,12 +20,13 @@ runs:
run: |
import os
icons = {
'msys': 'πŸŸͺ',
'mingw32': '⬛',
'mingw64': '🟦',
'ucrt64': '🟨',
'clang32': '🟫',
'clang64': '🟧',
'msys': 'πŸŸͺ',
'mingw32': '⬛',
'mingw64': '🟦',
'mingwarm64': '🟩',
'ucrt64': '🟨',
'clang32': '🟫',
'clang64': '🟧',
}
jobs = [
{'sys': sys.lower(), 'icon': icons[sys.lower()]}
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"GitHub",
"Actions",
"MSYS2",
"MINGWARM64",
"MINGW64",
"MINGW32",
"MSYS",
Expand Down

0 comments on commit 688453d

Please sign in to comment.