Package
ci / checks (push) Successful in 48m34s

This commit is contained in:
khodowany
2026-09-30 19:46:37 -05:00
parent 2a1aa2c67a
commit 09656a9d60
6621 changed files with 698 additions and 774 deletions
+15 -15
View File
@@ -88,44 +88,44 @@ jobs:
python3 \
python3-venv
python3 -m venv build/build_common/ci_python
build/build_common/ci_python/bin/python -m pip install --no-cache-dir conan==2.26.2 -r generator/requirements.txt
build/build_common/ci_python/bin/python -m pip install --no-cache-dir conan==2.26.2
echo "$PWD/build/build_common/ci_python/bin" >> "$GITHUB_PATH"
- name: Restore Conan cache
uses: actions/cache@v4
with:
path: build/build_common/conan_cache
key: product-vamp-conan-${{ runner.os }}-${{ hashFiles('conanfile.py', 'modulus.json', 'conan/profiles/*') }}
restore-keys: product-vamp-conan-${{ runner.os }}-
key: product_vamp_conan_${{ runner.os }}_${{ hashFiles('conanfile.py', 'modulus.json', 'conan/profiles/*') }}
restore-keys: product_vamp_conan_${{ runner.os }}_
- name: Configure native release
run: python3 modulus.py configure --target x86_64_gcc12_release --update
- name: Check package tooling
run: python3 -m unittest discover -s tests -p 'test_publish_package.py'
run: python3 modulus.py python -m unittest discover -s tests -p 'test_publish_package.py'
- name: Check code style
run: |
python3 -m pip install --no-cache-dir -r build/build_tools/docker/format-requirements.txt
python3 -m pip install --no-cache-dir -r build/build_tools/docker/format_requirements.txt
python3 modulus.py format --check
- name: Identify engraving renderer
id: renderer
run: echo "fingerprint=$(python3 -m generator --renderer-fingerprint)" >> "$GITHUB_OUTPUT"
run: echo "fingerprint=$(python3 modulus.py python -m generator --renderer-fingerprint)" >> "$GITHUB_OUTPUT"
- name: Restore engraving cache
id: engraving-cache
id: engraving_cache
uses: actions/cache/restore@v4
with:
path: build/build_common/engraving-cache/${{ steps.renderer.outputs.fingerprint }}
key: product-vamp-pages-${{ steps.renderer.outputs.fingerprint }}-${{ hashFiles('generator/**/*.py', 'generator/*.py', 'data/songs/*.xml', 'data/rhythms/**/*.xml', 'data/scales/**/*.xml') }}
restore-keys: product-vamp-pages-${{ steps.renderer.outputs.fingerprint }}-
path: build/build_common/engraving_cache/${{ steps.renderer.outputs.fingerprint }}
key: product_vamp_pages_${{ steps.renderer.outputs.fingerprint }}_${{ hashFiles('generator/**/*.py', 'generator/*.py', 'generator/palette.json', 'data/songs/*.xml', 'data/rhythms/**/*.xml', 'data/scales/**/*.xml') }}
restore-keys: product_vamp_pages_${{ steps.renderer.outputs.fingerprint }}_
- name: Build native release
run: python3 modulus.py build --target x86_64_gcc12_release
- name: Save engraving cache
if: steps.engraving-cache.outputs.cache-hit != 'true'
if: steps.engraving_cache.outputs.cache-hit != 'true'
uses: actions/cache/save@v4
with:
path: build/build_common/engraving-cache/${{ steps.renderer.outputs.fingerprint }}
key: ${{ steps.engraving-cache.outputs.cache-primary-key }}
path: build/build_common/engraving_cache/${{ steps.renderer.outputs.fingerprint }}
key: ${{ steps.engraving_cache.outputs.cache-primary-key }}
- name: Test native release
run: python3 modulus.py test --target x86_64_gcc12_release
- name: Test asset generation
run: python3 -m unittest discover -s tests -p 'test_*.py'
run: python3 modulus.py python -m unittest discover -s tests -p 'test_*.py'
- name: Fetch Pico SDK
if: ${{ gitea.event_name == 'workflow_dispatch' || (gitea.event_name == 'push' && gitea.ref == 'refs/heads/master') }}
env:
@@ -150,4 +150,4 @@ jobs:
env:
PACKAGE_REGISTRY_USER: ${{ secrets.CONAN_USER }}
PACKAGE_REGISTRY_TOKEN: ${{ secrets.CONAN_TOKEN }}
run: python3 package/scripts/publish_latest_generic_package.py
run: python3 modulus.py publish