|
1 | 1 | name: Ubuntu CI |
2 | 2 |
|
3 | 3 | on: |
4 | | - push: |
5 | | - branches-ignore: |
6 | | - # Exclude the push event for exported diffs, because the CI for export |
7 | | - # should have been covered by GitHub Actions triggered by pull requests. |
8 | | - - 'export-D+' |
9 | 4 | pull_request: |
10 | 5 |
|
11 | 6 | concurrency: |
|
26 | 21 |
|
27 | 22 | jobs: |
28 | 23 | build_ubuntu_focal_nightly: |
29 | | - runs-on: 8-core-ubuntu |
30 | | - container: |
31 | | - image: ubuntu:noble |
32 | | - env: |
| 24 | + runs-on: ubuntu-24.04 |
| 25 | + env: |
33 | 26 | DISTRO: ubuntu-24.04-noble |
34 | 27 | IS_NIGHTLY: 1 |
35 | 28 | CLANG_VERSION: 18 |
36 | 29 | steps: |
37 | 30 | - 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 |
| 31 | + run: sudo apt update -y && sudo 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 | 32 | - name: Making LLVM the default compiler |
40 | 33 | run: | |
41 | 34 | if [ -f /etc/alternatives/cc ] |
42 | 35 | then |
43 | | - update-alternatives --remove-all cc |
| 36 | + sudo update-alternatives --remove-all cc |
44 | 37 | fi |
45 | 38 |
|
46 | 39 | if [ -f /etc/alternatives/c++ ] |
47 | 40 | then |
48 | | - update-alternatives --remove-all c++ |
| 41 | + sudo update-alternatives --remove-all c++ |
49 | 42 | fi |
50 | 43 |
|
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} |
| 44 | + sudo update-alternatives --install /usr/bin/cc cc /usr/bin/clang++-${CLANG_VERSION} 500 |
| 45 | + sudo update-alternatives --set cc /usr/bin/clang++-${CLANG_VERSION} |
| 46 | + sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-${CLANG_VERSION} 500 |
| 47 | + sudo update-alternatives --set c++ /usr/bin/clang++-${CLANG_VERSION} |
55 | 48 | - name: Fetching HHVM and its submodules |
56 | 49 | uses: actions/checkout@v4 |
57 | 50 | with: |
58 | 51 | submodules: 'recursive' |
| 52 | + - name: Show disk space at start |
| 53 | + run: df -h |
| 54 | + - name: Free up disk space |
| 55 | + run: sudo rm -rf /usr/local/lib/android |
| 56 | + - name: Show disk space after freeing up |
| 57 | + run: df -h |
59 | 58 | - name: Installing HHVM deps and building HHVM |
60 | 59 | run: ci/bin/make-debianish-package |
61 | 60 | - name: Uploading artifacts |
|
0 commit comments