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

Add more GCC and Clang versions to CI. #233

Merged
merged 4 commits into from
Feb 24, 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
40 changes: 0 additions & 40 deletions .github/workflows/linux-gcc13.yaml

This file was deleted.

74 changes: 71 additions & 3 deletions .github/workflows/linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,18 @@ on:
# branches: [ master ]

jobs:
build_libebml:
name: libebml
runs-on: ubuntu-latest
Linux-GCC:
runs-on: ubuntu-20.04
strategy:
matrix:
cxx: ['7', '13']
neheb marked this conversation as resolved.
Show resolved Hide resolved
env:
CMAKE_OPTIONS: -DDEV_MODE=ON -DBUILD_TESTING=ON
steps:
- uses: lukka/get-cmake@latest
- uses: egor-tensin/setup-gcc@v1
with:
version: ${{matrix.cxx}}

- name: Get pushed code
uses: actions/checkout@v4
Expand All @@ -28,3 +33,66 @@ jobs:

- name: Run tests
run: ctest --test-dir _build
Linux-Clang:
runs-on: ubuntu-20.04
strategy:
matrix:
cxx: ['7', '17']
env:
CMAKE_OPTIONS: -DDEV_MODE=ON -DBUILD_TESTING=ON -DCMAKE_CXX_FLAGS="-stdlib=libc++"
steps:
- uses: lukka/get-cmake@latest
- uses: egor-tensin/setup-clang@v1
with:
version: ${{matrix.cxx}}

- name: Install libc++
run: |
sudo apt install -y libc++abi-${{matrix.cxx}}-dev libc++-${{matrix.cxx}}-dev

- name: Get pushed code
uses: actions/checkout@v3

- name: Configure
run: cmake -S . -B _build ${{ env.CMAKE_OPTIONS }} -DCMAKE_INSTALL_PREFIX:STRING=${GITHUB_WORKSPACE}/_built

- name: Build
run: cmake --build _build --parallel --verbose

- name: Test installation
run: cmake --install _build --prefix ${GITHUB_WORKSPACE}/_built

- name: Run tests
run: ctest --test-dir _build
Alpine:
runs-on: ubuntu-20.04
strategy:
matrix:
platform: ['armhf']
env:
CMAKE_OPTIONS: -DDEV_MODE=ON -DBUILD_TESTING=ON
defaults:
run:
shell: alpine.sh {0}
steps:
- name: Get pushed code
uses: actions/checkout@v3

- uses: jirutka/setup-alpine@v1
with:
branch: edge
arch: ${{matrix.platform}}
packages: >
build-base cmake

- name: Configure
run: cmake -S . -B _build ${{ env.CMAKE_OPTIONS }} -DCMAKE_INSTALL_PREFIX:STRING=${GITHUB_WORKSPACE}/_built

- name: Build
run: cmake --build _build --parallel --verbose

- name: Test installation
run: cmake --install _build --prefix ${GITHUB_WORKSPACE}/_built

- name: Run tests
run: ctest --test-dir _build
Loading