Skip to content

Commit

Permalink
优化策略
Browse files Browse the repository at this point in the history
  • Loading branch information
PJ-568 committed Feb 11, 2024
1 parent 9f382f7 commit 68b1d67
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/Test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,14 @@ jobs:
- name: Make font
run: |
mkdir ./Build/x1
mkdir ./Build/x2
unzip -o ${{ fromJson(steps.get-release.outputs.downloaded_files)[0] }} -d ./Build
grub-mkfont -o ./Build/x1/SmileySans-Oblique_32.pf2 -s 32 -v ./Build/SmileySans-Oblique.ttf
grub-mkfont -o ./Build/x1/SmileySans-Oblique_48.pf2 -s 48 -v ./Build/SmileySans-Oblique.ttf
grub-mkfont -o ./Build/x2/SmileySans-Oblique_64.pf2 -s 64 -v ./Build/SmileySans-Oblique.ttf
grub-mkfont -o ./Build/x2/SmileySans-Oblique_96.pf2 -s 96 -v ./Build/SmileySans-Oblique.ttf
find . -type d -name "568flat*" ! -name "568flat_x*" -exec bash -c 'cp -v -u -r "./Build/x1/*" "$(basename {})/" "{}"' \;
find . -type d -name "568flat_x2*" -exec bash -c 'cp -v -u -r "./Build/x2/*" "$(basename {})/" "{}"' \;
mkdir $GITHUB_WORKSPACE/Build/x1
mkdir $GITHUB_WORKSPACE/Build/x2
grub-mkfont -o $GITHUB_WORKSPACE/Build/x1/SmileySans-Oblique_32.pf2 -s 32 -v $GITHUB_WORKSPACE/Build/SmileySans-Oblique.ttf
grub-mkfont -o $GITHUB_WORKSPACE/Build/x1/SmileySans-Oblique_48.pf2 -s 48 -v $GITHUB_WORKSPACE/Build/SmileySans-Oblique.ttf
grub-mkfont -o $GITHUB_WORKSPACE/Build/x2/SmileySans-Oblique_64.pf2 -s 64 -v $GITHUB_WORKSPACE/Build/SmileySans-Oblique.ttf
grub-mkfont -o $GITHUB_WORKSPACE/Build/x2/SmileySans-Oblique_96.pf2 -s 96 -v $GITHUB_WORKSPACE/Build/SmileySans-Oblique.ttf
find . -type d -name "568flat*" ! -name "568flat_x*" -exec bash -c 'cp -v -u -r "$GITHUB_WORKSPACE/Build/x1/*" "{}/"' \;
find . -type d -name "568flat_x2*" -exec bash -c 'cp -v -u -r "$GITHUB_WORKSPACE/Build/x2/*" "{}/"' \;
- name: Pack
run: |
Expand Down

0 comments on commit 68b1d67

Please sign in to comment.