Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit c3b39a4

Browse files
authored
Fix progress reporting (#13)
* Update CI/CD script * Fix build RC
1 parent 6411545 commit c3b39a4

4 files changed

Lines changed: 42 additions & 12 deletions

File tree

.github/workflows/build.yml

Lines changed: 35 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,6 @@ jobs:
4242
- name: Checkout
4343
if: ${{ github.event_name == 'push' }}
4444
uses: actions/checkout@master
45-
46-
- name: Checkout gh-pages
47-
if: ${{ github.event_name == 'push' }}
48-
uses: actions/checkout@master
49-
with:
50-
path: gh-pages
51-
ref: gh-pages
5245

5346
- name: Checkout agbcc
5447
uses: actions/checkout@master
@@ -58,8 +51,11 @@ jobs:
5851

5952
- name: Install tools
6053
run: |
61-
sudo apt update && sudo apt install gcc-arm-none-eabi binutils-arm-none-eabi
54+
sudo apt update && sudo apt install gcc-arm-none-eabi binutils-arm-none-eabi xorg-dev
6255
python3 -m pip install gitpython
56+
# build-essential, git, and libpng-dev are already installed
57+
# gcc-arm-none-eabi is only needed for the modern build
58+
# as an alternative to dkP
6359

6460
- name: Install agbcc
6561
run: |
@@ -78,7 +74,6 @@ jobs:
7874
python3 scripts/progress.py text
7975
8076
- name: Generate reports
81-
if: ${{ github.event_name == 'push' }}
8277
run: |
8378
mkdir -p gh-pages/reports
8479
mkdir -p gh-pages/maps
@@ -88,8 +83,37 @@ jobs:
8883
python3 scripts/progress.py shield-json -m > gh-pages/reports/progress-sa1-shield-matching.json
8984
echo "REPORTS_COMMIT_MSG=$( git log --format=%s ${GITHUB_SHA} )" >> $GITHUB_ENV
9085
cp sa1.map gh-pages/maps/${GITHUB_SHA}.map
91-
92-
- name: Update reports
86+
87+
- name: Upload progress
88+
if: ${{ github.event_name == 'push' || github.event_name == 'pull_request' }}
89+
uses: actions/upload-artifact@v7
90+
with:
91+
path: |
92+
gh-pages
93+
94+
publish-progress:
95+
name: Publish progress
96+
runs-on: ubuntu-24.04
97+
needs: [build-gba]
98+
# Only able to run from repo pull requests (by maintainers, or on the main branch via push)
99+
if: ${{ github.event_name == 'push' || github.event_name == 'pull_request' }}
100+
permissions:
101+
contents: write
102+
steps:
103+
- name: Checkout gh-pages
104+
uses: actions/checkout@master
105+
with:
106+
path: gh-pages
107+
ref: gh-pages
108+
- name: Download progress
109+
uses: actions/download-artifact@v7
110+
with:
111+
path: |
112+
gh-pages
113+
- run: |
114+
cd gh-pages
115+
git status
116+
- name: Publish reports
93117
if: ${{ github.event_name == 'push' }}
94118
uses: EndBug/add-and-commit@v7
95119
with:

tools/_shared/arena_alloc/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ CC = gcc
33

44
SOURCE = arena_alloc.c
55

6-
# Clear the default suffixes
6+
# Clear the default suffixes (needed to fix build race condition)
77
.SUFFIXES:
88

99
.PHONY: all clean

tools/_shared/c_header_parser/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ SRCS = c_header_parser.c
88

99
CFLAGS = -I $(ARENA_ALLOC_DIR) -Wall -Wextra -Werror $(NO_ERROR) -std=gnu11 -O2
1010

11+
# Clear the default suffixes (needed to fix build race condition)
12+
.SUFFIXES:
13+
1114
.PHONY: all clean
1215

1316
all: libc_header_parser.a

tools/_shared/csv_conv/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ SRCS = csv_conv.c
99
CFLAGS = -I $(CSV_CONV_DIR) -Wall -Wextra -Werror $(NO_ERROR) -std=gnu11 -O2
1010
LDFLAGS =
1111

12+
# Clear the default suffixes (needed to fix build race condition)
13+
.SUFFIXES:
14+
1215
.PHONY: all clean
1316

1417
all: libcsv_conv.a

0 commit comments

Comments
 (0)