From b440a029dfeecea9d1c18ddf413a60395ef92167 Mon Sep 17 00:00:00 2001 From: Tres Finocchiaro Date: Tue, 18 Feb 2025 18:41:28 -0500 Subject: [PATCH] Update FLTK in the AppImage (#7710) Bump fltk 1.3.x->1.4.1 Closes #5386 --- .github/workflows/build.yml | 36 +++++++++++++++++++- .github/workflows/deps-ubuntu-24.04-fltk.txt | 3 ++ .github/workflows/deps-ubuntu-24.04-gcc.txt | 1 - 3 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/deps-ubuntu-24.04-fltk.txt diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a46420ef21b..9c812fd9b05 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,6 +25,13 @@ jobs: with: fetch-depth: 0 submodules: recursive + - name: Clone fltk + uses: actions/checkout@v4 + with: + repository: fltk/fltk + path: fltk + ref: 27d991f046bdebb12bfd58f7c05a19f135979c29 + fetch-depth: 1 - name: Configure winehq run: | sudo dpkg --add-architecture i386 @@ -37,8 +44,10 @@ jobs: run: | sudo apt-get update -y sudo apt-get install -y --no-install-recommends \ - $(xargs < .github/workflows/deps-ubuntu-24.04-gcc.txt) + $(xargs < .github/workflows/deps-ubuntu-24.04-gcc.txt) sudo apt-get install -y --install-recommends g++-multilib gcc-multilib winehq-stable wine-stable-dev + sudo apt-get install -y --install-recommends \ + $(xargs < .github/workflows/deps-ubuntu-24.04-fltk.txt) - name: Cache ccache data uses: actions/cache@v3 with: @@ -47,6 +56,14 @@ jobs: ccache-${{ github.job }}-${{ github.ref }}- ccache-${{ github.job }}- path: ~/.ccache + - name: Configure fltk + run: | + cmake -S fltk -B fltk/build -DFLTK_BUILD_SHARED_LIBS=ON -DFLTK_BACKEND_WAYLAND=ON \ + -DFLTK_USE_LIBDECOR_GTK=OFF -DFLTK_BUILD_TEST=OFF -DFLTK_BUILD_GL=OFF + - name: Install fltk + run: | + cmake --build fltk/build + sudo cmake --install fltk/build --prefix /usr - name: Configure run: | ccache --zero-stats @@ -98,11 +115,20 @@ jobs: with: fetch-depth: 0 submodules: recursive + - name: Clone fltk + uses: actions/checkout@v4 + with: + repository: fltk/fltk + path: fltk + ref: 27d991f046bdebb12bfd58f7c05a19f135979c29 + fetch-depth: 1 - name: Install system packages run: | sudo apt-get update -y sudo apt-get install -y --no-install-recommends \ $(xargs < .github/workflows/deps-ubuntu-24.04-gcc.txt) + sudo apt-get install -y --install-recommends \ + $(xargs < .github/workflows/deps-ubuntu-24.04-fltk.txt) - name: Cache ccache data uses: actions/cache@v3 with: @@ -111,6 +137,14 @@ jobs: ccache-${{ github.job }}-${{ github.ref }}- ccache-${{ github.job }}- path: ~/.ccache + - name: Configure fltk + run: | + cmake -S fltk -B fltk/build -DFLTK_BUILD_SHARED_LIBS=ON -DFLTK_BACKEND_WAYLAND=ON \ + -DFLTK_USE_LIBDECOR_GTK=OFF -DFLTK_BUILD_TEST=OFF -DFLTK_BUILD_GL=OFF + - name: Install fltk + run: | + cmake --build fltk/build + sudo cmake --install fltk/build --prefix /usr - name: Configure run: | ccache --zero-stats diff --git a/.github/workflows/deps-ubuntu-24.04-fltk.txt b/.github/workflows/deps-ubuntu-24.04-fltk.txt new file mode 100644 index 00000000000..05a127b947e --- /dev/null +++ b/.github/workflows/deps-ubuntu-24.04-fltk.txt @@ -0,0 +1,3 @@ +libcairo2-dev +libpango1.0-dev +wayland-protocols diff --git a/.github/workflows/deps-ubuntu-24.04-gcc.txt b/.github/workflows/deps-ubuntu-24.04-gcc.txt index a9e665d3c66..ce5fb7560b2 100644 --- a/.github/workflows/deps-ubuntu-24.04-gcc.txt +++ b/.github/workflows/deps-ubuntu-24.04-gcc.txt @@ -11,7 +11,6 @@ g++ libasound2-dev libc6-dev libfftw3-dev -libfltk1.3-dev libfluidsynth-dev libgig-dev libgtk2.0-0