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] branches: [main]
jobs: jobs:
validate: ci:
name: Validate name: Validate, Test, Build
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@@ -17,43 +17,26 @@ jobs:
with: with:
python-version: "3.11" python-version: "3.11"
- name: Validate applications.json - name: Validate
run: make validate run: python scripts/validate-json.py src/applications.json
test: - name: 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
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: make test run: python scripts/test-apps.py
check-generated: - name: Generate
name: Check Generated Files run: |
runs-on: ubuntu-latest python scripts/normalize-json.py src/applications.json
needs: validate python scripts/generate-table.py src/applications.json ./pages/table.md
steps: python scripts/generate-readme.py ./pages/header.md ./pages/table.md ./pages/faq.md ./pages/footer.md
- uses: actions/checkout@v4 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 - name: Check generated files are up to date
with:
python-version: "3.11"
- name: Run make build
run: make build
- name: Check for uncommitted changes
run: | run: |
if [ -n "$(git diff --name-only)" ]; then 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 ""
echo "Changed files:" echo "Changed files:"
git diff --name-only git diff --name-only

View File

@@ -1,39 +0,0 @@
# These targets exist for CI (GitHub Actions) only.
# For local development, use the justfile: run `just` to see all commands.
.PHONY: help validate test build normalize table readme minify minify-dual-screen
.DEFAULT_GOAL := help
help: ## Show available targets
@echo "CI-only build targets. For local development, run 'just' to see all commands."
@echo ""
@grep -E '^[a-z].*:.*##' Makefile | sed 's/:.*## /\t/' | while IFS=$$'\t' read -r target desc; do \
printf "\033[1;32m%-20s\033[0m %s\n" "$$target" "$$desc"; \
done
validate: ## Validate applications.json for errors
@python scripts/validate-json.py src/applications.json
test: ## Live-test all app configs resolve to downloadable APKs
@python scripts/test-apps.py
build: validate normalize readme minify minify-dual-screen ## Build all artifacts
normalize: ## Normalize key order and add missing defaults
@python scripts/normalize-json.py src/applications.json
table: ## Generate markdown table for the README
@python scripts/generate-table.py src/applications.json ./pages/table.md
readme: table ## Generate the README from page sections
@python scripts/generate-readme.py \
./pages/header.md \
./pages/table.md \
./pages/faq.md \
./pages/footer.md
minify: ## Generate standard release JSON
@python scripts/minify-json.py src/applications.json obtainium-emulation-pack-latest.json --variant standard
minify-dual-screen: ## Generate dual-screen release JSON
@python scripts/minify-json.py src/applications.json obtainium-emulation-pack-dual-screen-latest.json --variant dual-screen