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 aed3e00 commit 2673a1d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/matrix_container.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,35 +3,30 @@
"platform": "linux",
"arch": "amd64",
"pkg_type": "static",
"lib_impl": "gnu",
"image": "valord577/linux-cross:d62159e85069a9c141b90f1429600183908c0f90"
"lib_impl": "gnu"
},
{
"platform": "linux",
"arch": "arm64",
"pkg_type": "static",
"lib_impl": "gnu",
"image": "valord577/linux-cross:d62159e85069a9c141b90f1429600183908c0f90"
"lib_impl": "gnu"
},
{
"platform": "linux",
"arch": "armv7",
"pkg_type": "static",
"lib_impl": "gnueabihf",
"image": "valord577/linux-cross:d62159e85069a9c141b90f1429600183908c0f90"
"lib_impl": "gnueabihf"
},
{
"platform": "linux",
"arch": "amd64",
"pkg_type": "static",
"lib_impl": "musl",
"image": "valord577/linux-cross:d62159e85069a9c141b90f1429600183908c0f90"
"lib_impl": "musl"
},
{
"platform": "linux",
"arch": "arm64",
"pkg_type": "static",
"lib_impl": "musl",
"image": "valord577/linux-cross:d62159e85069a9c141b90f1429600183908c0f90"
"lib_impl": "musl"
}
]
3 changes: 3 additions & 0 deletions .github/workflows/_matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ jobs:
- name: set matrix container
id: set-matrix-container
run: |
container_linux="valord577/linux-cross:d62159e85069a9c141b90f1429600183908c0f90"
matrix=$(cat .github/matrix_container.json | jq -c -M "map(. | select($jq_expr) )")
matrix=$(echo ${matrix} | jq -c -M "map(if .platform == \"linux\" then . + {image: \"${container_linux}\"} else . end)")
printf "\e[1m\e[33m%s\e[0m\n" "matrix: $matrix"
echo "matrix-container={\"include\":$(echo $matrix)}" >> "$GITHUB_OUTPUT"
Expand Down

0 comments on commit 2673a1d

Please sign in to comment.