remove Makefile, simplify CI to single job calling python scripts directly

This commit is contained in:
Richard Macias
2026-02-27 18:43:55 -06:00
parent edf447a073
commit adddae74ad
2 changed files with 15 additions and 71 deletions

View File

@@ -7,8 +7,8 @@ on:
branches: [main]
jobs:
validate:
name: Validate
ci:
name: Validate, Test, Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
@@ -17,43 +17,26 @@ jobs:
with:
python-version: "3.11"
- name: Validate applications.json
run: make validate
- name: Validate
run: python scripts/validate-json.py src/applications.json
test:
name: Live Test
runs-on: ubuntu-latest
needs: validate
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Test app configs resolve to APKs
- name: Test
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: make test
run: python scripts/test-apps.py
check-generated:
name: Check Generated Files
runs-on: ubuntu-latest
needs: validate
steps:
- uses: actions/checkout@v4
- name: Generate
run: |
python scripts/normalize-json.py src/applications.json
python scripts/generate-table.py src/applications.json ./pages/table.md
python scripts/generate-readme.py ./pages/header.md ./pages/table.md ./pages/faq.md ./pages/footer.md
python scripts/minify-json.py src/applications.json obtainium-emulation-pack-latest.json --variant standard
python scripts/minify-json.py src/applications.json obtainium-emulation-pack-dual-screen-latest.json --variant dual-screen
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Run make build
run: make build
- name: Check for uncommitted changes
- name: Check generated files are up to date
run: |
if [ -n "$(git diff --name-only)" ]; then
echo "Generated files are out of date. Run 'make build' and commit the results."
echo "Generated files are out of date. Run 'just build' and commit the results."
echo ""
echo "Changed files:"
git diff --name-only