Skip to content

Commit

Permalink
Use Ubuntu 24.04 image for CI (#553)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcauberer committed May 17, 2024
1 parent d1ff73b commit ecaa09d
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 45 deletions.
28 changes: 9 additions & 19 deletions .github/workflows/ci-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ on:
jobs:
build-linux:
name: C++ CI
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

steps:
- name: Checkout
Expand All @@ -32,31 +32,21 @@ jobs:
distribution: zulu
java-version: 11

- name: Setup latest GCC and build dependencies
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/ppa
sudo apt update
sudo apt install gcc-13 g++-13 gdb
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 110 --slave /usr/bin/g++ g++ /usr/bin/g++-13 --slave /usr/bin/gcov gcov /usr/bin/gcov-13 --slave /usr/bin/gcc-ar gcc-ar /usr/bin/gcc-ar-13 --slave /usr/bin/gcc-ranlib gcc-ranlib /usr/bin/gcc-ranlib-13
- name: Setup Mold
uses: rui314/setup-mold@v1

- name: Setup Ninja
run: sudo apt-get install ninja-build
- name: Setup CCache
uses: hendrikmuhs/ccache-action@v1

- name: Setup Graphviz
run: sudo apt-get install graphviz
- name: Setup Dependencies
run: sudo apt-get install ninja-build graphviz pipx uuid-dev

- name: Setup Valgrind
if: github.event_name == 'pull_request'
run: sudo apt-get install valgrind

- name: Setup Mold
uses: rui314/setup-mold@v1

- name: Setup CCache
uses: hendrikmuhs/ccache-action@v1

- name: Setup Gcovr
run: sudo pip install gcovr
run: sudo pipx install gcovr

- name: Cache LLVM
id: cache-llvm
Expand Down Expand Up @@ -131,7 +121,7 @@ jobs:
run: |
cd ./bin
sudo chmod +x coverage.sh
sudo ./coverage.sh
./coverage.sh
- name: Upload coverage report - coverage.spicelang.com
uses: sebastianpopp/ftp-action@releases/v2
Expand Down
15 changes: 4 additions & 11 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
analyze-cpp:
name: Analyze C++ Code
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -20,22 +20,15 @@ jobs:
distribution: zulu
java-version: 11

- name: Setup latest GCC and build dependencies
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/ppa
sudo apt update
sudo apt install gcc-13 g++-13
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 110 --slave /usr/bin/g++ g++ /usr/bin/g++-13 --slave /usr/bin/gcov gcov /usr/bin/gcov-13 --slave /usr/bin/gcc-ar gcc-ar /usr/bin/gcc-ar-13 --slave /usr/bin/gcc-ranlib gcc-ranlib /usr/bin/gcc-ranlib-13
- name: Setup Ninja
run: sudo apt-get install ninja-build

- name: Setup Mold
uses: rui314/setup-mold@v1

- name: Setup CCache
uses: hendrikmuhs/ccache-action@v1

- name: Setup Dependencies
run: sudo apt-get install ninja-build graphviz pipx uuid-dev

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:

jobs:
docs-deploy:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
19 changes: 6 additions & 13 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
build-compiler-linux-x86:
name: Build compiler - Linux/x86_64
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

steps:
- name: Checkout
Expand All @@ -21,22 +21,15 @@ jobs:
distribution: zulu
java-version: 11

- name: Setup latest GCC and build dependencies
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/ppa
sudo apt update
sudo apt install gcc-13 g++-13
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 110 --slave /usr/bin/g++ g++ /usr/bin/g++-13 --slave /usr/bin/gcov gcov /usr/bin/gcov-13 --slave /usr/bin/gcc-ar gcc-ar /usr/bin/gcc-ar-13 --slave /usr/bin/gcc-ranlib gcc-ranlib /usr/bin/gcc-ranlib-13
- name: Setup Ninja
run: sudo apt-get install ninja-build

- name: Setup Mold
uses: rui314/setup-mold@v1

- name: Setup CCache
uses: hendrikmuhs/ccache-action@v1

- name: Setup Dependencies
run: sudo apt-get install ninja-build pipx uuid-dev

- name: Cache LLVM
id: cache-llvm
uses: actions/cache@v4
Expand Down Expand Up @@ -81,7 +74,7 @@ jobs:

build-compiler-linux-aarch64:
name: Build compiler - Linux/AArch64
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

steps:
- name: Checkout
Expand Down Expand Up @@ -285,7 +278,7 @@ jobs:
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
version: v1.25.1
version: v1.26.1
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion src/linker/ExternalLinkerInterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class ExternalLinkerInterface {
const CliOptions &cliOptions;
std::vector<std::string> objectFilePaths;
std::vector<std::string> linkerFlags = {
"-flto", // Enable LTO
// "-flto", // Enable LTO
};
};

Expand Down

0 comments on commit ecaa09d

Please sign in to comment.