Skip to content

Commit

Permalink
Use gcc-12 on Ubuntu 24.04 builds (#61)
Browse files Browse the repository at this point in the history
* Use gcc-12 on Ubuntu 24.04 builds

* Fix matrix

* Fix matrix

* Fix matrix

* Update nx version
  • Loading branch information
jfantinhardesty authored Nov 8, 2024
1 parent 6ebbb07 commit 576cf49
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 11 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/cmake-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ jobs:
matrix:
os: [ubuntu-24.04, ubuntu-22.04, ubuntu-20.04]
build_type: [Release]
c_compiler: [gcc, clang]
c_compiler: [clang]
include:
- os: ubuntu-24.04
c_compiler: gcc
cpp_compiler: g++
arm_c_compiler: aarch64-linux-gnu-gcc
arm_cpp_compiler: aarch64-linux-gnu-g++
c_compiler: gcc-12
cpp_compiler: g++-12
arm_c_compiler: aarch64-linux-gnu-gcc-12
arm_cpp_compiler: aarch64-linux-gnu-g++-12
- os: ubuntu-24.04
c_compiler: clang
cpp_compiler: clang++
Expand Down Expand Up @@ -64,13 +64,19 @@ jobs:

steps:
- uses: actions/checkout@v4

- name: Install cross compiler
if: ${{ Contains(matrix.os, 'ubuntu') }}
if: ${{ Contains(matrix.os, 'ubuntu-22.04') || Contains(matrix.os, 'ubuntu-20.04')}}
run: |
sudo apt-get update
sudo apt-get install -y g++-aarch64-linux-gnu gcc-aarch64-linux-gnu libstdc++6-arm64-cross linux-libc-dev-arm64-cross
- name: Install gcc-12
if: ${{ Contains(matrix.os, 'ubuntu-24.04') }}
run: |
sudo apt-get update
sudo apt-get install -y g++-12-aarch64-linux-gnu gcc-12-aarch64-linux-gnu gcc-12 g++-12 g++-aarch64-linux-gnu gcc-aarch64-linux-gnu libstdc++6-arm64-cross linux-libc-dev-arm64-cross
- name: Setup vcpkg
uses: lukka/run-vcpkg@v11
id: runvcpkg
Expand Down
14 changes: 10 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ on:
- 'v*'

jobs:
build:
build-release:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-24.04
c_compiler: gcc
cpp_compiler: g++
c_compiler: gcc-12
cpp_compiler: g++-12
arm_c_compiler: aarch64-linux-gnu-gcc
arm_cpp_compiler: aarch64-linux-gnu-g++
- os: ubuntu-22.04
Expand All @@ -32,11 +32,17 @@ jobs:
uses: actions/checkout@v4

- name: Install cross compiler
if: ${{ Contains(matrix.os, 'ubuntu') }}
if: ${{ Contains(matrix.os, 'ubuntu-22.04') || Contains(matrix.os, 'ubuntu-20.04')}}
run: |
sudo apt-get update
sudo apt-get install -y g++-aarch64-linux-gnu gcc-aarch64-linux-gnu
- name: Install gcc-12
if: ${{ Contains(matrix.os, 'ubuntu-24.04') }}
run: |
sudo apt-get update
sudo apt-get install -y g++-12-aarch64-linux-gnu gcc-12-aarch64-linux-gnu gcc-12 g++-12 g++-aarch64-linux-gnu gcc-aarch64-linux-gnu
- name: Setup vcpkg
uses: lukka/run-vcpkg@v11
id: runvcpkg
Expand Down

0 comments on commit 576cf49

Please sign in to comment.