mirror of
https://github.com/anope/anope.git
synced 2026-06-12 19:14:47 +02:00
3d845097de
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v5...v6) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
58 lines
1.5 KiB
YAML
58 lines
1.5 KiB
YAML
name: Ubuntu CI
|
|
on:
|
|
pull_request:
|
|
push:
|
|
schedule:
|
|
- cron: '0 0 * * 0'
|
|
workflow_dispatch:
|
|
jobs:
|
|
build:
|
|
if: "!contains(github.event.head_commit.message, '[skip ubuntu ci]')"
|
|
runs-on: ubuntu-24.04
|
|
env:
|
|
CXX: ${{ matrix.compiler }}
|
|
CXXFLAGS: -Werror
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
sudo apt-get update --assume-yes
|
|
sudo apt-get install --assume-yes --no-install-recommends \
|
|
clang \
|
|
g++ \
|
|
gettext \
|
|
git \
|
|
libargon2-dev \
|
|
libgnutls28-dev \
|
|
libldap2-dev \
|
|
libmysqlclient-dev \
|
|
libpcre2-dev \
|
|
libsqlite3-dev \
|
|
libssl-dev \
|
|
libtre-dev \
|
|
ninja-build
|
|
|
|
- name: Enable extras
|
|
run: |
|
|
for MODULE in enc_argon2 enc_posix ldap mysql regex_pcre2 regex_posix regex_tre sqlite ssl_gnutls ssl_openssl
|
|
do
|
|
ln -s ${{ github.workspace }}/modules/extra/$MODULE.cpp ${{ github.workspace }}/modules
|
|
done
|
|
|
|
- name: Run CMake
|
|
run: |
|
|
mkdir build && cd build
|
|
cmake -GNinja -DCMAKE_BUILD_TYPE:STRING=DEBUG -DINSTDIR:STRING=${{ github.workspace }}/run ..
|
|
|
|
- name: Build Anope
|
|
run: |
|
|
ninja -C ${{ github.workspace }}/build install
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
compiler:
|
|
- clang++
|
|
- g++
|