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

Ubuntu 24.04 #48

Merged
merged 2 commits into from
Sep 20, 2024
Merged
Show file tree
Hide file tree
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
94 changes: 54 additions & 40 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,26 +33,26 @@ jobs:
include:
# define operating systems
- flavor: ubuntu
os: ubuntu-22.04
os: ubuntu-24.04
- flavor: mac
os: macos-12
os: macos-14
- flavor: windows
os: windows-latest
# CC
- compiler: msvc
is-experimental: false
- compiler: gcc
CC: gcc-12
CXX: g++-12
CC: gcc-14
CXX: g++-14
is-experimental: false
- compiler: clang
CC: clang-17
CXX: clang++-17
CC_LD: lld-17
CXX_LD: lld-17
CC: clang
CXX: clang++
CC_LD: lld
CXX_LD: lld
is-experimental: true
# Mac stuff
- DEVELOPER_DIR: /Applications/Xcode_14.1.app/Contents/Developer
- DEVELOPER_DIR: /Applications/Xcode_15.2.app/Contents/Developer
flavor: mac
exclude:
- flavor: windows
Expand Down Expand Up @@ -84,39 +84,37 @@ jobs:
- if: ${{ matrix.compiler == 'clang' && matrix.flavor == 'ubuntu' }}
name: Install clang ubuntu
run: |
sudo apt-get remove -y python3-lldb-x.y python3-lldb-14 libc++1-14 libc++abi1-14 libunwind-14 libunwind-14-dev
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 17
# libc++-16 doesn't have std::views::join yet
sudo apt-get install libc++-17-dev libc++abi-17-dev
sudo apt-get install libstdc++-12-dev
sudo apt-get install clang libc++-dev libc++abi-dev libstdc++-14-dev libhowardhinnant-date-dev

- if: ${{ matrix.compiler == 'gcc' && matrix.flavor == 'ubuntu' }}
name: Install gcc ubuntu
run: |
sudo apt-get install g++-12 libstdc++-12-dev
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 12
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-12 12
sudo update-alternatives --set gcc /usr/bin/gcc-12
sudo update-alternatives --set g++ /usr/bin/g++-12
sudo apt-get install g++-14 libstdc++-14-dev
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-14 14
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-14 14
sudo update-alternatives --set gcc /usr/bin/gcc-14
sudo update-alternatives --set g++ /usr/bin/g++-14

- if: ${{ matrix.flavor == 'ubuntu' }}
name: Install deps ubuntu
run: |
sudo add-apt-repository -n ppa:talisein/ctre
sudo add-apt-repository -n ppa:talisein/libboost-ext-ut
sudo add-apt-repository -n ppa:talisein/outcome
sudo add-apt-repository -n ppa:talisein/magic-enum
sudo apt-get update
sudo apt-get install ninja-build libhowardhinnant-date-dev liboutcome-dev libboost-ext-ut-dev libctre-dev libmagicenum-dev jq findutils
python -m pip install meson
sudo apt-get install ninja-build liboutcome-dev libboost-ext-ut-dev libctre-dev libmagicenum-dev jq findutils meson
# python -m pip install meson

- if: ${{ matrix.flavor == 'mac' }}
name: Install deps mac
run: |
brew install meson ninja

- if: ${{ matrix.flavor == 'mac' && matrix.compiler == 'gcc' }}
name: Install gcc mac
run: |
brew search gcc@
brew install meson gcc@12 ninja
brew install gcc@14

- if: ${{ matrix.flavor == 'windows' }}
name: Install Meson/Ninja Windows
Expand Down Expand Up @@ -153,20 +151,25 @@ jobs:
continue-on-error: true

- if: ${{ matrix.flavor == 'ubuntu' && !startsWith(github.ref, 'refs/tags/v') }}
name: Configure Ubuntu 22 (Debug)
name: Configure Ubuntu 24 (Debug)
run: |
meson setup --warnlevel 3 --buildtype debug --default-library static --force-fallback-for libjpeg,libpng build

- if: ${{ matrix.flavor == 'ubuntu' && startsWith(github.ref, 'refs/tags/v') }}
name: Configure Ubuntu 22 (Release)
name: Configure Ubuntu 24 (Release)
run: |
meson setup --warnlevel 3 --buildtype release --default-library static --force-fallback-for libjpeg,libpng build

- if: ${{ matrix.flavor == 'mac' }}
name: Configure MacOS 12
- if: ${{ matrix.flavor == 'mac' && matrix.compiler == 'gcc' }}
name: Configure MacOS 14 GCC
run: |
meson setup --warnlevel 3 --buildtype release --default-library static -Dcpp_link_args="-static-libstdc++ -static-libgcc" --force-fallback-for libjpeg,libpng -Dcpp-httplib:cpp-httplib_openssl=disabled build

- if: ${{ matrix.flavor == 'mac' && matrix.compiler == 'clang' }}
name: Configure MacOS 14 clang
run: |
meson setup --warnlevel 3 --buildtype release --default-library static --force-fallback-for libjpeg,libpng -Dcpp-httplib:cpp-httplib_openssl=disabled build

- if: ${{ matrix.flavor == 'windows' }}
name: Configure Windows Latest
run: |
Expand Down Expand Up @@ -279,25 +282,36 @@ jobs:

check-run-linux:
needs: build
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- name: Download Artifacts
uses: actions/download-artifact@v4

- run: |
chmod u+x dregarnuhr-ubuntu-22.04-gcc/dregarnuhr
dregarnuhr-ubuntu-22.04-gcc/dregarnuhr --check --verbose
chmod u+x dregarnuhr-ubuntu-24.04-gcc/dregarnuhr
dregarnuhr-ubuntu-24.04-gcc/dregarnuhr --check --verbose

check-run-macos-12:
check-run-macos-14:
needs: build
runs-on: macos-12
runs-on: macos-14
steps:
- name: Download Artifacts
uses: actions/download-artifact@v4

- run: |
chmod u+x dregarnuhr-macos-12-gcc/dregarnuhr
dregarnuhr-macos-12-gcc/dregarnuhr --check --verbose
chmod u+x dregarnuhr-macos-14-gcc/dregarnuhr
dregarnuhr-macos-14-gcc/dregarnuhr --check --verbose

# check-run-macos-14-clang:
# needs: build
# runs-on: macos-14
# steps:
# - name: Download Artifacts
# uses: actions/download-artifact@v4
#
# - run: |
# chmod u+x dregarnuhr-macos-14-clang/dregarnuhr
# dregarnuhr-macos-14-clang/dregarnuhr --check --verbose

check-run-win:
needs: build
Expand All @@ -310,7 +324,7 @@ jobs:

release:
if: startsWith(github.ref, 'refs/tags/v')
needs: [check-run-linux, check-run-macos-12, check-run-win]
needs: [check-run-linux, check-run-macos-14, check-run-win]
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand All @@ -334,8 +348,8 @@ jobs:
REF: ${{ github.event.ref }}
run: echo "::set-output name=MYREF::`echo $REF | cut -b 11-`"

- run: chmod u+x dregarnuhr-ubuntu-22.04-gcc/dregarnuhr
- run: tar -C ./dregarnuhr-ubuntu-22.04-gcc -cJvf "dregarnuhr-linux-${{ steps.myref.outputs.MYREF }}.tar.xz" dregarnuhr
- run: chmod u+x dregarnuhr-ubuntu-24.04-gcc/dregarnuhr
- run: tar -C ./dregarnuhr-ubuntu-24.04-gcc -cJvf "dregarnuhr-linux-${{ steps.myref.outputs.MYREF }}.tar.xz" dregarnuhr
- run: chmod u+x dregarnuhr-macos-12-gcc/dregarnuhr
- run: tar -C ./dregarnuhr-macos-12-gcc -czvf "dregarnuhr-mac-${{ steps.myref.outputs.MYREF }}.tar.gz" dregarnuhr
- run: zip -j "./dregarnuhr-windows-${{ steps.myref.outputs.MYREF }}.zip" dregarnuhr-windows-latest/dregarnuhr.exe
Expand All @@ -347,7 +361,7 @@ jobs:
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dregarnuhr-linux-${{ steps.myref.outputs.MYREF }}.tar.xz
asset_name: dregarnuhr-ubuntu22.04-${{ steps.myref.outputs.MYREF }}.tar.xz
asset_name: dregarnuhr-ubuntu24.04-${{ steps.myref.outputs.MYREF }}.tar.xz
asset_content_type: application/x-xz

- name: Release Mac Artifact
Expand Down
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
dregarnuhr (1.5.12.0-2) noble; urgency=medium

* rebuild for noble

-- Andrew Potter <[email protected]> Thu, 19 Sep 2024 16:03:10 -0700

dregarnuhr (1.5.12.0-1) jammy; urgency=medium

* P5V12
Expand Down
5 changes: 2 additions & 3 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@ Source: dregarnuhr
Priority: optional
Maintainer: Andrew Potter <[email protected]>
Build-Depends: debhelper-compat (= 13),
g++-12,
g++-14,
meson,
pkg-config,
pkgconf,
cmake,
zlib1g-dev,
libjpeg-turbo8-dev,
libpng-dev,
liblzma-dev,
libhowardhinnant-date-dev,
libcpp-httplib-dev,
libboost-ext-ut-dev (>= 1.1.9-4),
liboutcome-dev,
Expand Down
2 changes: 1 addition & 1 deletion debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
dh $@ -Smeson

override_dh_auto_configure:
CC=gcc-12 CXX=g++-12 dh_auto_configure -Smeson
CC=gcc-14 CXX=g++-14 dh_auto_configure -Smeson
Loading