Skip to content

Maybe?

Maybe? #92

Workflow file for this run

name: "Check"
on:
push:
pull_request:
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: "Setup Python"
uses: "actions/setup-python@v5"
with:
python-version: 3.11.9
- name: "Checkout code"
uses: actions/checkout@v4
with:
fetch-depth: 1
ref: ${{ github.event.pull_request.head.sha }}
- name: "Check packs format"
run: |
make check
- name: "Checkout firmware"
uses: actions/checkout@v4
with:
repository: Next-Flip/Momentum-Firmware
fetch-depth: 1
ref: dev
path: .firmware
- name: "Regenerate icons.txt"
run: |
cd .firmware/assets/icons
for icon in */*.png */*/frame_rate; do echo "$icon"; done | LC_COLLATE=C sort -fs > ../../../.utils/icons.txt
cd ../../..
rm -rf .firmware
- name: "Prepare deterministic diff"
run: |
gunzip --keep -- */download/*.tar.gz
git rm -- */download/*.tar.gz
git add -- */download/*.tar
- name: "Repack everything"
run: |
make repack
- name: "Upload artifacts to GitHub"
uses: actions/upload-artifact@v4
with:
include-hidden-files: true
path: |
*/download
.utils/icons.txt
- name: "Check deterministic diff"
run: |
gunzip -- */download/*.tar.gz
git add --intent-to-add -- */download/*.tar
git diff --exit-code -- */download/*.tar .utils/icons.txt
- name: "Trigger reindex"
env:
INDEXER_URL: ${{ secrets.INDEXER_URL }}
if: ${{ env.INDEXER_URL != '' && github.ref_name == 'dev' }}
run: |
curl --fail -L -H "Token: ${{ secrets.INDEXER_TOKEN }}" \
"${{ secrets.INDEXER_URL }}"/asset-packs/reindex;