mirror of
https://github.com/Neargye/magic_enum.git
synced 2026-01-09 23:34:23 +00:00
Bumps the github-actions group with 2 updates: [actions/checkout](https://github.com/actions/checkout) and [github/codeql-action](https://github.com/github/codeql-action).
Updates `actions/checkout` from 4 to 5
- [Release notes](https://github.com/actions/checkout/releases)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)
Updates `github/codeql-action` from 3.29.7 to 3.29.11
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](51f77329af...3c3833e0f8)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-version: '5'
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: github-actions
- dependency-name: github/codeql-action
dependency-version: 3.29.11
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
65 lines
2.5 KiB
YAML
65 lines
2.5 KiB
YAML
name: ubuntu
|
|
|
|
on: [push, pull_request]
|
|
|
|
permissions: read-all
|
|
|
|
jobs:
|
|
ubuntu:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
compiler:
|
|
- { cc: "gcc-11", cxx: "g++-11", os: "ubuntu-22.04", nonascii: "TRUE" }
|
|
- { cc: "gcc-11", cxx: "g++-11", os: "ubuntu-22.04", nonascii: "FALSE" }
|
|
- { cc: "gcc-12", cxx: "g++-12", os: "ubuntu-22.04", nonascii: "FALSE" }
|
|
- { cc: "gcc-13", cxx: "g++-13", os: "ubuntu-24.04", nonascii: "FALSE" }
|
|
- { cc: "gcc-14", cxx: "g++-14", os: "ubuntu-24.04", nonascii: "FALSE" }
|
|
- { cc: "clang-13", cxx: "clang++-13", os: "ubuntu-22.04", nonascii: "FALSE" }
|
|
- { cc: "clang-14", cxx: "clang++-14", os: "ubuntu-22.04", nonascii: "FALSE" }
|
|
- { cc: "clang-15", cxx: "clang++-15", os: "ubuntu-22.04", nonascii: "FALSE" }
|
|
- { cc: "clang-16", cxx: "clang++-16", os: "ubuntu-24.04", nonascii: "FALSE" }
|
|
- { cc: "clang-17", cxx: "clang++-16", os: "ubuntu-24.04", nonascii: "FALSE" }
|
|
- { cc: "clang-18", cxx: "clang++-16", os: "ubuntu-24.04", nonascii: "FALSE" }
|
|
|
|
name: "${{ format('{0} NONASCII={1}', matrix.compiler.cc, matrix.compiler.nonascii) }}"
|
|
runs-on: ${{ matrix.compiler.os }}
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
|
|
- name: Configure clang
|
|
run: |
|
|
if [[ "${{ matrix.compiler.cc }}" == "clang"* ]]; then
|
|
sudo apt update
|
|
sudo apt install ${{ matrix.compiler.cc }} -y
|
|
fi
|
|
|
|
- name: Configure gcc
|
|
run: |
|
|
if [[ "${{ matrix.compiler.cc }}" == "gcc"* ]]; then
|
|
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
|
|
sudo apt update
|
|
sudo apt install ${{ matrix.compiler.cxx }} -y
|
|
fi
|
|
|
|
- name: Build Release
|
|
run: |
|
|
rm -rf build
|
|
mkdir build
|
|
cd build
|
|
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=${{ matrix.compiler.cxx }} -DMAGIC_ENUM_OPT_ENABLE_NONASCII:BOOL=${{ matrix.compiler.nonascii }}
|
|
cmake --build . -j 4 --config Release
|
|
ctest --output-on-failure -C Release
|
|
|
|
- name: Build Debug
|
|
run: |
|
|
rm -rf build
|
|
mkdir build
|
|
cd build
|
|
cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=${{ matrix.compiler.cxx }} -DMAGIC_ENUM_OPT_ENABLE_NONASCII:BOOL=${{ matrix.compiler.nonascii }}
|
|
cmake --build . -j 4 --config Debug
|
|
ctest --output-on-failure -C Debug
|
|
|
|
- name: Bazel Test
|
|
working-directory: test
|
|
run: bazelisk test //... --config=ci
|