Skip to content

Commit d575db5

Browse files
committed
Only containerize the actual package build
1 parent 516da39 commit d575db5

File tree

2 files changed

+42
-41
lines changed

2 files changed

+42
-41
lines changed

.github/workflows/ubuntu.yml

Lines changed: 25 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches-ignore:
66
# Exclude the push event for exported diffs, because the CI for export
77
# should have been covered by GitHub Actions triggered by pull requests.
8-
- 'export-D+'
8+
- "export-D+"
99
pull_request:
1010

1111
concurrency:
@@ -25,41 +25,28 @@ env:
2525
DEBIAN_FRONTEND: "noninteractive"
2626

2727
jobs:
28-
build_ubuntu_focal_nightly:
29-
runs-on: 8-core-ubuntu
30-
container:
31-
image: ubuntu:noble
32-
env:
33-
DISTRO: ubuntu-24.04-noble
34-
IS_NIGHTLY: 1
35-
CLANG_VERSION: 18
28+
build_ubuntu_noble_nightly:
29+
runs-on: ubuntu-latest
3630
steps:
37-
- name: Installing dependencies to bootstrap env
38-
run: apt update -y && apt install -y git wget lsb-release software-properties-common gpg clang clang-${CLANG_VERSION} libc++-${CLANG_VERSION}-dev libc++abi-${CLANG_VERSION}-dev
39-
- name: Making LLVM the default compiler
40-
run: |
41-
if [ -f /etc/alternatives/cc ]
42-
then
43-
update-alternatives --remove-all cc
44-
fi
45-
46-
if [ -f /etc/alternatives/c++ ]
47-
then
48-
update-alternatives --remove-all c++
49-
fi
50-
51-
update-alternatives --install /usr/bin/cc cc /usr/bin/clang++-${CLANG_VERSION} 500
52-
update-alternatives --set cc /usr/bin/clang++-${CLANG_VERSION}
53-
update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-${CLANG_VERSION} 500
54-
update-alternatives --set c++ /usr/bin/clang++-${CLANG_VERSION}
55-
- name: Fetching HHVM and its submodules
56-
uses: actions/checkout@v4
57-
with:
58-
submodules: 'recursive'
59-
- name: Installing HHVM deps and building HHVM
60-
run: ci/bin/make-debianish-package
61-
- name: Uploading artifacts
62-
uses: actions/upload-artifact@v4
63-
with:
64-
name: out-directory
65-
path: ${{ env.OUT }}
31+
# The HHVM build requires more disk space than what is available
32+
# on a default Actions runner, so remove some cruft.
33+
- name: Free up disk space
34+
uses: jlumbroso/[email protected]
35+
- name: Fetching HHVM and its submodules
36+
uses: actions/checkout@v4
37+
with:
38+
submodules: "recursive"
39+
- name: Installing HHVM deps and building HHVM
40+
uses: docker://ubuntu:noble
41+
env:
42+
DISTRO: ubuntu-24.04-noble
43+
IS_NIGHTLY: 1
44+
CLANG_VERSION: 18
45+
with:
46+
entrypoint: /bin/bash
47+
args: ci/bin/make-debianish-package
48+
- name: Uploading artifacts
49+
uses: actions/upload-artifact@v4
50+
with:
51+
name: out-directory
52+
path: ${{ env.OUT }}

ci/bin/make-debianish-package

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,23 @@ OUT=${OUT:-/var/out}
3434
mkdir -p "$OUT"
3535

3636
# Environment set up
37-
apt-get -o Acquire::Retries=3 update -y
38-
apt-get clean
39-
apt-get -o Acquire::Retries=3 install -y devscripts equivs
37+
apt update -y && apt install -y devscripts equivs git wget lsb-release software-properties-common gpg clang clang-${CLANG_VERSION} libc++-${CLANG_VERSION}-dev libc++abi-${CLANG_VERSION}-dev
38+
39+
# Making LLVM the default compiler
40+
if [ -f /etc/alternatives/cc ]
41+
then
42+
update-alternatives --remove-all cc
43+
fi
44+
45+
if [ -f /etc/alternatives/c++ ]
46+
then
47+
update-alternatives --remove-all c++
48+
fi
49+
50+
update-alternatives --install /usr/bin/cc cc /usr/bin/clang++-${CLANG_VERSION} 500
51+
update-alternatives --set cc /usr/bin/clang++-${CLANG_VERSION}
52+
update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-${CLANG_VERSION} 500
53+
update-alternatives --set c++ /usr/bin/clang++-${CLANG_VERSION}
4054

4155
# Copy the debian directory to the root of the git repo
4256
# so that all the devscripts command work.

0 commit comments

Comments
 (0)