generated from osc/skins-template
Update CI from skins-template
Some checks failed
Generate Skin previews, OSK files and per skin documentation / Full CI/CD Pipeline (push) Failing after 2s
Some checks failed
Generate Skin previews, OSK files and per skin documentation / Full CI/CD Pipeline (push) Failing after 2s
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
name: CI/CD Pipeline
|
name: Generate Skin previews, OSK files and per skin documentation
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -42,7 +42,7 @@ env:
|
|||||||
jobs:
|
jobs:
|
||||||
generate_everything:
|
generate_everything:
|
||||||
name: Full CI/CD Pipeline
|
name: Full CI/CD Pipeline
|
||||||
runs-on: ubuntu-latest
|
runs-on: danser
|
||||||
container:
|
container:
|
||||||
image: ${{ vars.CONTAINER_REGISTRY }}/${{ env.IMAGE_NAME }}:latest
|
image: ${{ vars.CONTAINER_REGISTRY }}/${{ env.IMAGE_NAME }}:latest
|
||||||
options: >-
|
options: >-
|
||||||
@@ -172,7 +172,6 @@ jobs:
|
|||||||
echo ""
|
echo ""
|
||||||
echo "[Detect Changed Skin Directories Complete — ${#uniq_skins[@]} skins processed, ${#deleted_skins[@]} skins deleted]"
|
echo "[Detect Changed Skin Directories Complete — ${#uniq_skins[@]} skins processed, ${#deleted_skins[@]} skins deleted]"
|
||||||
|
|
||||||
|
|
||||||
- name: Pull Git LFS objects for changed skins (and core assets)
|
- name: Pull Git LFS objects for changed skins (and core assets)
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
@@ -494,15 +493,22 @@ jobs:
|
|||||||
for group_list in "$group1_icons" "$group2_icons" "$group3_icons"; do
|
for group_list in "$group1_icons" "$group2_icons" "$group3_icons"; do
|
||||||
montage_files=()
|
montage_files=()
|
||||||
for icon in $group_list; do
|
for icon in $group_list; do
|
||||||
|
file=""
|
||||||
if [ -f "${ICON_FOLDER}/selection-mod-${icon}@2x.png" ]; then
|
if [ -f "${ICON_FOLDER}/selection-mod-${icon}@2x.png" ]; then
|
||||||
montage_files+=("${ICON_FOLDER}/selection-mod-${icon}@2x.png")
|
file="${ICON_FOLDER}/selection-mod-${icon}@2x.png"
|
||||||
|
elif [ -f "${ICON_FOLDER}/selection-mod-${icon}.png" ]; then
|
||||||
|
file="${ICON_FOLDER}/selection-mod-${icon}.png"
|
||||||
elif [ -f "${DEFAULT_SKIN_DIR}/selection-mod-${icon}@2x.png" ]; then
|
elif [ -f "${DEFAULT_SKIN_DIR}/selection-mod-${icon}@2x.png" ]; then
|
||||||
montage_files+=("${DEFAULT_SKIN_DIR}/selection-mod-${icon}@2x.png")
|
file="${DEFAULT_SKIN_DIR}/selection-mod-${icon}@2x.png"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
[ -n "$file" ] && montage_files+=("$file")
|
||||||
done
|
done
|
||||||
|
|
||||||
while [ "${#montage_files[@]}" -lt 7 ]; do
|
while [ "${#montage_files[@]}" -lt 7 ]; do
|
||||||
montage_files+=("$BLANK_IMAGE")
|
montage_files+=("$BLANK_IMAGE")
|
||||||
done
|
done
|
||||||
|
|
||||||
magick montage "${montage_files[@]}" \
|
magick montage "${montage_files[@]}" \
|
||||||
-tile "7x1" -geometry "160x160+10+10" -background none \
|
-tile "7x1" -geometry "160x160+10+10" -background none \
|
||||||
"row_${row_index}.png"
|
"row_${row_index}.png"
|
||||||
@@ -861,6 +867,7 @@ jobs:
|
|||||||
echo "[Cleanup Extra Files Started]"
|
echo "[Cleanup Extra Files Started]"
|
||||||
|
|
||||||
[ -f how-to-use.md ] && rm -f how-to-use.md
|
[ -f how-to-use.md ] && rm -f how-to-use.md
|
||||||
|
[ -f src/replay.osr ] && rm -f src/replay.osr
|
||||||
|
|
||||||
readarray -t skins <<< "$ALL_SKINS_DIR"
|
readarray -t skins <<< "$ALL_SKINS_DIR"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user