diff options
Diffstat (limited to '.github')
-rw-r--r-- | .github/ISSUE_TEMPLATE/BUG.yml | 44 | ||||
-rw-r--r-- | .github/ISSUE_TEMPLATE/BUG_REPORT.md | 33 | ||||
-rw-r--r-- | .github/ISSUE_TEMPLATE/FEATURE.yml | 20 | ||||
-rw-r--r-- | .github/ISSUE_TEMPLATE/FEATURE_REQUEST.md | 15 | ||||
-rw-r--r-- | .github/ISSUE_TEMPLATE/config.yml | 4 | ||||
-rw-r--r-- | .github/PULL_REQUEST_TEMPLATE.md | 13 | ||||
-rw-r--r-- | .github/workflows/ci-alpine.yml | 59 | ||||
-rw-r--r-- | .github/workflows/ci-linux.yml | 11 | ||||
-rw-r--r-- | .github/workflows/ci-windows.yml | 2 |
9 files changed, 146 insertions, 55 deletions
diff --git a/.github/ISSUE_TEMPLATE/BUG.yml b/.github/ISSUE_TEMPLATE/BUG.yml new file mode 100644 index 000000000..f104f89a7 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/BUG.yml @@ -0,0 +1,44 @@ +--- +name: Bug report +description: Report a non-security bug in Anope. +body: + - type: markdown + attributes: + value: | + Thanks for taking the time to fill out this bug report! Please make sure to answer the questions properly and don't just enter the same text into every field as this will make it harder for us to fix your bug. + + If you're looking for help with setting up your services please post on [our support forum](https://github.com/orgs/anope/discussions/categories/support) instead. + + If you're reporting a crash or other security issue [please read our security policy](https://github.com/anope/anope/security/policy#reporting-a-vulnerability) for how to report security issues privately. + + - type: textarea + attributes: + label: Description + validations: + required: true + + - type: textarea + attributes: + label: Steps to reproduce the issue + validations: + required: true + + - type: textarea + attributes: + label: Describe the results you received + validations: + required: true + + - type: textarea + attributes: + label: Describe the results you expected + validations: + required: true + + - type: input + attributes: + label: Anope version + description: |- + Either the output of `services --version` (2.0) or `anope --version` (2.1). + validations: + required: true diff --git a/.github/ISSUE_TEMPLATE/BUG_REPORT.md b/.github/ISSUE_TEMPLATE/BUG_REPORT.md deleted file mode 100644 index ba7f67999..000000000 --- a/.github/ISSUE_TEMPLATE/BUG_REPORT.md +++ /dev/null @@ -1,33 +0,0 @@ ---- -name: Bug report -about: Report a non-security issue with Anope. ---- - -<!-- -Please fill in the template below. It will help us process your bug report a lot faster. If you have multiple bugs to report then please open one issue for each bug. ---> - -**Description** - - - -**Steps to reproduce the issue:** - -1. -2. -3. - -**Describe the results you received:** - - - -**Describe the results you expected:** - - - -**Additional information you deem important (e.g. issue happens only occasionally):** - - - -**Output of `services --version`:** - diff --git a/.github/ISSUE_TEMPLATE/FEATURE.yml b/.github/ISSUE_TEMPLATE/FEATURE.yml new file mode 100644 index 000000000..625f1284f --- /dev/null +++ b/.github/ISSUE_TEMPLATE/FEATURE.yml @@ -0,0 +1,20 @@ +--- +name: Feature request +description: Request that a new feature is added to Anope. +body: + - type: markdown + attributes: + value: | + Thanks for taking the time to fill out this feature request! + + - type: textarea + attributes: + label: Description + validations: + required: true + + - type: textarea + attributes: + label: Why this would be useful? + validations: + required: true diff --git a/.github/ISSUE_TEMPLATE/FEATURE_REQUEST.md b/.github/ISSUE_TEMPLATE/FEATURE_REQUEST.md deleted file mode 100644 index 8b64999a4..000000000 --- a/.github/ISSUE_TEMPLATE/FEATURE_REQUEST.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -name: Feature request -about: Request that a new feature is added to Anope. ---- - -<!-- -Please fill in the template below. It will help us process your feature request a lot faster. If you have multiple features to request then please open one issue for each feature. ---> - -**Description** - - - -**Why this would be useful** - diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 3ba13e0ce..5ac78f510 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1 +1,5 @@ blank_issues_enabled: false +contact_links: + - name: Support forum + url: https://github.com/orgs/anope/discussions/categories/support + about: Please ask support questions here. diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 5fe0ba7e3..ab7785320 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -24,3 +24,16 @@ I have tested this pull request on: **Operating system name and version:** <!-- e.g. Linux 3.11 --> **Compiler name and version:** <!-- e.g. GCC 4.2.0 --> + +## Checks + +<!-- +Tick the boxes for the checks you have made. +--> + +I have ensured that: + +- [ ] The code I am submitting is my own work and/or I have permission from the author to share it. +- [ ] Generative AI (Copilot, ChatGPT, etc) was not used to create any part of this pull request. +- [ ] I have documented any features added by this pull request. +- [ ] This pull request does not introduce any incompatible API changes (stable branches only, delete if not applicable). diff --git a/.github/workflows/ci-alpine.yml b/.github/workflows/ci-alpine.yml new file mode 100644 index 000000000..c2a679303 --- /dev/null +++ b/.github/workflows/ci-alpine.yml @@ -0,0 +1,59 @@ +name: Alpine CI +on: + pull_request: + push: + schedule: + - cron: '0 0 * * 0' +jobs: + build: + if: "!contains(github.event.head_commit.message, '[skip alpine ci]')" + container: alpine:edge + runs-on: ubuntu-latest + env: + CXX: ${{ matrix.compiler }} + CXXFLAGS: -Werror + steps: + - uses: actions/checkout@v4 + + - name: Install dependencies + run: | + echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories + apk update + apk add \ + argon2-dev \ + clang \ + cmake \ + g++ \ + gettext \ + git \ + gnutls-dev \ + mariadb-dev \ + openldap-dev \ + openssl-dev \ + pcre2-dev \ + samurai \ + sqlite-dev \ + tre-dev + + - 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 $PWD/modules/extra/$MODULE.cpp $PWD/modules + done + + - name: Run CMake + run: | + mkdir build && cd build + cmake -GNinja -DCMAKE_BUILD_TYPE:STRING=DEBUG -DINSTDIR:STRING=$(readlink -f ../run) .. + + - name: Build Anope + run: | + ninja -C build install + + strategy: + fail-fast: false + matrix: + compiler: + - clang++ + - g++ diff --git a/.github/workflows/ci-linux.yml b/.github/workflows/ci-linux.yml index 6dd554928..9c281dbc2 100644 --- a/.github/workflows/ci-linux.yml +++ b/.github/workflows/ci-linux.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-24.04 env: CXX: ${{ matrix.compiler }} - CXXFLAGS: -std=${{ matrix.standard }} + CXXFLAGS: -Werror steps: - uses: actions/checkout@v4 @@ -20,11 +20,11 @@ jobs: g++ \ gettext \ git \ + libargon2-dev \ libgnutls28-dev \ libldap2-dev \ libmysqlclient-dev \ libpcre2-dev \ - libpcre3-dev \ libsqlite3-dev \ libssl-dev \ libtre-dev \ @@ -32,9 +32,9 @@ jobs: - name: Enable extras run: | - for MODULE in m_ldap.cpp m_ldap_authentication.cpp m_ldap_oper.cpp m_mysql.cpp m_regex_pcre.cpp m_regex_pcre2.cpp m_regex_posix.cpp m_regex_tre.cpp m_sql_authentication.cpp m_sql_log.cpp m_sql_oper.cpp m_sqlite.cpp m_ssl_gnutls.cpp m_ssl_openssl.cpp stats + 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 ${{ github.workspace }}/modules + ln -s ${{ github.workspace }}/modules/extra/$MODULE.cpp ${{ github.workspace }}/modules done - name: Run CMake @@ -52,6 +52,3 @@ jobs: compiler: - clang++ - g++ - standard: - - c++98 - - c++17 diff --git a/.github/workflows/ci-windows.yml b/.github/workflows/ci-windows.yml index 0477c8f4c..3f27a7b48 100644 --- a/.github/workflows/ci-windows.yml +++ b/.github/workflows/ci-windows.yml @@ -5,6 +5,8 @@ on: release: types: - published + schedule: + - cron: '0 0 * * 0' jobs: build: if: "!contains(github.event.head_commit.message, '[skip windows ci]')" |