actions: migrate to build matrix
-name: macOS GCC
+name: macOS
# Triggers the workflow on push or pull request events
on: [push, pull_request]
@@ -6,14 +6,8 @@ on: [push, pull_request]
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: RelWithDebInfo
- # Unfortunately the tests for the Xerces plugin fail: https://travis-ci.org/ElektraInitiative/libelektra/jobs/483331657#L3740
- # The curlget tests fail: https://github.com/ElektraInitiative/libelektra/issues/3382
- PLUGINS: 'ALL;-xerces;-curlget'
- BINDINGS: 'ALL;-rust'
# Skip homebrew cleanup to avoid issues with removal of packages
HOMEBREW_NO_INSTALL_CLEANUP: 1
- CC: gcc-10
- CXX: g++-10
jobs:
build:
@@ -22,6 +16,16 @@ jobs:
# cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: macos-10.15
+ strategy:
+ matrix:
+ include:
+ - name: GCC 10
+ CC: gcc-10
+ CXX: g++-10
+ # Unfortunately the tests for the Xerces plugin fail: https://travis-ci.org/ElektraInitiative/libelektra/jobs/483331657#L3740
+ # The curlget tests fail: https://github.com/ElektraInitiative/libelektra/issues/3382
+ PLUGINS: 'ALL;-xerces;-curlget'
+ BINDINGS: 'ALL;-rust'
steps:
- uses: actions/checkout@v2
