77# repository, so that job runs only in parseablehq/parseable.
88# It also creates a checksum file for the artifacts and publishes it to the release page.
99# It also builds and pushes a Docker image to Docker Hub with the same version tag.
10- # Linux jobs run on Blacksmith runners. The build-profile input can select the
10+ # Linux jobs run on GitHub-hosted Ubuntu 24.04 runners. The build-profile input can select the
1111# experimental release-thin-lto profile; such runs upload workflow artifacts
1212# only and never publish to the release page or registry.
1313
4242jobs :
4343 build-frontend :
4444 name : Package frontend
45- runs-on : blacksmith-8vcpu- ubuntu-2404
45+ runs-on : ubuntu-24.04
4646 timeout-minutes : 20
4747 permissions :
4848 contents : write
@@ -100,17 +100,32 @@ jobs:
100100 matrix :
101101 include :
102102 - target : x86_64-unknown-linux-gnu
103- os : blacksmith-8vcpu- ubuntu-2404
103+ os : ubuntu-24.04
104104 # A hosted runner lost contact during the cross-compiled LTO build,
105105 # so aarch64 builds natively on an Arm runner.
106106 - target : aarch64-unknown-linux-gnu
107- os : blacksmith-8vcpu- ubuntu-2404 -arm
108- timeout-minutes : 90
107+ os : ubuntu-24.04 -arm
108+ timeout-minutes : 180
109109 steps :
110110 - uses : actions/checkout@v4
111111 with :
112112 ref : ${{ inputs.build-profile == 'release-thin-lto' && inputs.tag || format('refs/tags/{0}', inputs.tag) }}
113113
114+ - name : Prepare Linux build resources
115+ if : runner.os == 'Linux'
116+ run : |
117+ sudo rm -rf /usr/local/lib/android /usr/share/dotnet /opt/ghc /opt/hostedtoolcache/CodeQL
118+ echo "CARGO_BUILD_JOBS=2" >> "$GITHUB_ENV"
119+ if sudo fallocate -l 16G /swap.build && sudo chmod 600 /swap.build \
120+ && sudo mkswap /swap.build && sudo swapon /swap.build; then
121+ echo "Added 16G swap"
122+ else
123+ sudo rm -f /swap.build
124+ echo "::warning title=Swap::Could not add swap; continuing without it"
125+ fi
126+ free -h
127+ df -h /
128+
114129 - name : Set up Node.js
115130 uses : actions/setup-node@v4
116131 with :
@@ -140,21 +155,6 @@ jobs:
140155 with :
141156 key : ${{ matrix.target }}-default-${{ env.RELEASE_PROFILE }}
142157
143- # The aarch64 runner lost contact during the fat-LTO build twice, which
144- # GitHub attributes to CPU or memory starvation. Free disk, add swap and
145- # record the resources as annotations, which survive a lost runner.
146- # Swap is best effort because runner disk layouts differ.
147- - name : Free disk and add swap
148- run : |
149- sudo rm -rf /usr/local/lib/android /usr/share/dotnet /opt/ghc /opt/hostedtoolcache/CodeQL
150- if sudo fallocate -l 16G /swap.release && sudo chmod 600 /swap.release \
151- && sudo mkswap /swap.release && sudo swapon /swap.release; then
152- echo "Added 16G swap"
153- else
154- echo "::warning title=Swap::Could not add swap; continuing without it"
155- fi
156- echo "::notice title=Runner resources::$(nproc) CPUs; $(free -h | awk '/Mem/{print $2" RAM"} /Swap/{print $2" swap"}' | paste -sd ' '); $(df -h --output=avail / | tail -1 | tr -d ' ') free on /"
157-
158158 - name : Build native
159159 run : cargo build --profile "$RELEASE_PROFILE" --target ${{ matrix.target }}
160160
@@ -332,8 +332,8 @@ jobs:
332332
333333 build-kafka-linux :
334334 name : Build Kafka for x86_64-unknown-linux-gnu
335- runs-on : blacksmith-8vcpu- ubuntu-2404
336- timeout-minutes : 90
335+ runs-on : ubuntu-24.04
336+ timeout-minutes : 180
337337 permissions :
338338 id-token : write
339339 contents : write
@@ -343,6 +343,21 @@ jobs:
343343 with :
344344 ref : ${{ inputs.build-profile == 'release-thin-lto' && inputs.tag || format('refs/tags/{0}', inputs.tag) }}
345345
346+ - name : Prepare Linux build resources
347+ if : runner.os == 'Linux'
348+ run : |
349+ sudo rm -rf /usr/local/lib/android /usr/share/dotnet /opt/ghc /opt/hostedtoolcache/CodeQL
350+ echo "CARGO_BUILD_JOBS=2" >> "$GITHUB_ENV"
351+ if sudo fallocate -l 16G /swap.build && sudo chmod 600 /swap.build \
352+ && sudo mkswap /swap.build && sudo swapon /swap.build; then
353+ echo "Added 16G swap"
354+ else
355+ sudo rm -f /swap.build
356+ echo "::warning title=Swap::Could not add swap; continuing without it"
357+ fi
358+ free -h
359+ df -h /
360+
346361 - name : Set up Node.js
347362 uses : actions/setup-node@v4
348363 with :
@@ -538,7 +553,7 @@ jobs:
538553 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
539554
540555 create-checksum :
541- runs-on : blacksmith-8vcpu- ubuntu-2404
556+ runs-on : ubuntu-24.04
542557 timeout-minutes : 10
543558 needs : [build-linux, build-windows, build-mac, build-kafka-linux, build-kafka-mac]
544559 permissions :
0 commit comments