Skip to content

Commit a3447e8

Browse files
committed
Attempt to make free GH runners build the Spin
Signed-off-by: Richard Alpe <richard@bit42.se>
1 parent 567b1b8 commit a3447e8

2 files changed

Lines changed: 38 additions & 0 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,25 @@ jobs:
5050
fetch-depth: 0
5151
submodules: recursive
5252

53+
# Buildroot fetches most tarballs from codeload.github.com, which
54+
# rate limits (HTTP 429). Infix specific packages have no working
55+
# fallback either, sources.buildroot.net only carries upstream
56+
# Buildroot ones, so a throttled fetch is a failed build. Keeping
57+
# dl/ warm means repeat runs hardly download anything.
58+
- name: Restore Downloads
59+
uses: actions/cache/restore@v5
60+
with:
61+
path: dl/
62+
key: dl-${{ github.run_id }}-${{ github.run_attempt }}
63+
restore-keys: dl-
64+
65+
- name: Restore ccache
66+
uses: actions/cache/restore@v5
67+
with:
68+
path: .ccache/
69+
key: ccache-${{ github.run_id }}-${{ github.run_attempt }}
70+
restore-keys: ccache-
71+
5372
- name: Configure x86_64
5473
run: make x86_64_defconfig
5574

@@ -69,6 +88,24 @@ jobs:
6988
if: always()
7089
run: make test-report
7190

91+
# Saved even when the build failed, on purpose. A run that dies
92+
# part way through must not throw away the tarballs it did manage
93+
# to fetch, or the retry starts from nothing and hits the rate
94+
# limit all over again.
95+
- name: Save Downloads
96+
if: always()
97+
uses: actions/cache/save@v5
98+
with:
99+
path: dl/
100+
key: dl-${{ github.run_id }}-${{ github.run_attempt }}
101+
102+
- name: Save ccache
103+
if: always()
104+
uses: actions/cache/save@v5
105+
with:
106+
path: .ccache/
107+
key: ccache-${{ github.run_id }}-${{ github.run_attempt }}
108+
72109
- name: Upload Images
73110
if: always()
74111
uses: actions/upload-artifact@v7

‎configs/x86_64_defconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ BR2_x86_corei7=y
33
BR2_TOOLCHAIN_EXTERNAL=y
44
BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY=y
55
BR2_DL_DIR="${BR2_EXTERNAL_EXAMPLE_PATH}/dl"
6+
BR2_WGET="wget -nd -t 5 --waitretry=30 --retry-on-http-error=429,500,502,503,504 --connect-timeout=10"
67
BR2_CCACHE=y
78
BR2_CCACHE_DIR="${BR2_EXTERNAL_EXAMPLE_PATH}/.ccache"
89
BR2_ENABLE_DEBUG=y

0 commit comments

Comments
 (0)