Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test build gcc14 ubuntu24.04 #1851

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 69 additions & 0 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,75 @@ jobs:
make VERBOSE=1 -j$(nproc)
sudo make install

gcc-14:
runs-on: ubuntu-24.04
env:
CC: /usr/bin/gcc-14
CXX: /usr/bin/g++-14
ASM: /usr/bin/gcc-14
steps:
- name: checkout media-driver
uses: actions/checkout@v4
with:
path: media
- name: checkout libva
uses: actions/checkout@v4
with:
repository: intel/libva
path: libva
- name: checkout gmmlib
uses: actions/checkout@v4
with:
repository: intel/gmmlib
path: gmmlib
- name: install prerequisites
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
automake \
cmake \
gcc-14 \
g++-14 \
libtool \
libdrm-dev \
libx11-dev \
libx11-xcb-dev \
libxcb-dri3-dev \
libxext-dev \
libxfixes-dev \
libwayland-dev \
ninja-build \
pkg-config \
make
- name: print tools versions
run: |
cmake --version
$CC --version
$CXX --version
- name: build libva
run: |
cd libva
./autogen.sh --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu
make -j$(nproc)
sudo make install
- name: build gmmlib
run: |
cd gmmlib
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib/x86_64-linux-gnu ..
make VERBOSE=1 -j$(nproc)
sudo make install
- name: build media-driver
run: |
cd media
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib/x86_64-linux-gnu \
-DCMAKE_C_FLAGS_RELEASE="$_CFLAGS" \
-DCMAKE_CXX_FLAGS_RELEASE="$_CFLAGS" \
..
make VERBOSE=1 -j$(nproc)
sudo make install

gcc-11:
runs-on: ubuntu-22.04
env:
Expand Down