Skip to content

Commit

Permalink
uni container version
Browse files Browse the repository at this point in the history
  • Loading branch information
valord577 committed Dec 10, 2024
1 parent e875184 commit 77fcc1d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 0 additions & 5 deletions .github/matrix.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,25 @@
[
{
"os": "macos-14",
"platform": "iphoneos",
"arch": "arm64",
"pkg_type": "static"
},
{
"os": "macos-14",
"platform": "iphonesimulator",
"arch": "arm64",
"pkg_type": "static"
},
{
"os": "macos-14",
"platform": "iphonesimulator",
"arch": "x86_64",
"pkg_type": "static"
},
{
"os": "macos-14",
"platform": "macosx",
"arch": "arm64",
"pkg_type": "static"
},
{
"os": "macos-14",
"platform": "macosx",
"arch": "x86_64",
"pkg_type": "static"
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/_matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ jobs:
- name: set matrix
id: set-matrix
run: |
host_macos='.platform == "iphoneos" or .platform == "iphonesimulator" or .platform == "macosx"'
matrix=$(cat .github/matrix.json | jq -c -M "map(. | select($jq_expr) )")
matrix=$(echo ${matrix} | jq -c -M "map(if ${host_macos} then . + {os: \"macos-14\"} else . end)")
printf "\e[1m\e[33m%s\e[0m\n" "matrix: $matrix"
echo "matrix={\"include\":$(echo $matrix)}" >> "$GITHUB_OUTPUT"
- name: set matrix container
Expand Down

0 comments on commit 77fcc1d

Please sign in to comment.