From 3f07b08b4dfd65897d776e590954789178c335d4 Mon Sep 17 00:00:00 2001 From: Adrian Del Grosso <10929341+ad3154@users.noreply.github.com> Date: Sun, 29 Dec 2024 15:14:14 -0600 Subject: [PATCH] Add Ubuntu 24.04 Build Added a build step for Ubuntu 24.04 and build when PRs are opened from other repos. --- .github/workflows/build.yml | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 11f7350..8156a41 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,11 @@ name: Build -on: push +on: + push: + branches: + - main + pull_request: + types: [opened, synchronize, reopened] jobs: windows_build: @@ -83,5 +88,25 @@ jobs: with: name: 'Ubuntu 22.04 deb package' path: build/_CPack_Packages/Linux/DEB/*.deb - - + ubuntu_24_04_build: + name: Ubuntu 24.04 Build + runs-on: ubuntu-24.04 + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + submodules: recursive + - name: Compile + run: | + mkdir build + sudo apt update + sudo apt install libasound2-dev libjack-jackd2-dev ladspa-sdk libcurl4-openssl-dev libfreetype6-dev libx11-dev libxcomposite-dev libxcursor-dev libxcursor-dev libxext-dev libxinerama-dev libxrandr-dev libxrender-dev libglu1-mesa-dev mesa-common-dev git cmake + cmake -S . -B build -DBUILD_EXAMPLES=OFF -DBUILD_TESTING=OFF -Wno-dev + cmake --build build --config Release + cd build + cpack -G DEB + - name: 'Upload Ubuntu 24.04 deb package' + uses: actions/upload-artifact@v4 + with: + name: 'Ubuntu 24.04 deb package' + path: build/_CPack_Packages/Linux/DEB/*.deb