Skip to content

Commit

Permalink
Reduce GitHub Actions matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
JeromeMartinez committed Feb 12, 2025
1 parent da55ece commit 5e8bc85
Showing 1 changed file with 22 additions and 8 deletions.
30 changes: 22 additions & 8 deletions .github/workflows/MediaInfoLib_Checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,19 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
environement: [normal, minified, minimal, minimal-with-xml]
environement: [gcc, minified, minimal, minimal-with-xml, cmake]
exclude:
- os: macos-latest
environement: minified
- os: macos-latest
environement: minimal
- os: macos-latest
environement: minimal-with-xml
include:
- environement: normal
- environement: gcc
CXXFLAGS: ""
RUN_TESTS: "all"
- environement: cmake
CXXFLAGS: ""
RUN_TESTS: "all"
- environement: minified
Expand Down Expand Up @@ -42,34 +52,38 @@ jobs:
if [ "$RUNNER_OS" == "macOS" ]; then
brew install libtool automake
fi
sudo npm install -g jsonlint
- name: ZenLib
run: |
git -C .. clone --depth=1 https://github.com/MediaArea/ZenLib.git
- name: Configure
if: ${{ matrix.environement != 'cmake' }}
run: |
pushd ../ZenLib/Project/GNU/Library
autoreconf -if
./configure --enable-static
./configure --enable-silent-rules --enable-static
make
popd
- name: Configure
run: |
cd Project/GNU/Library
autoreconf -if
./configure --with-libcurl=runtime
./configure --enable-silent-rules --with-libcurl=runtime
- name: Build
if: ${{ matrix.environement != 'cmake' }}
run: |
cd Project/GNU/Library
make
- name: Check files
if: ${{ matrix.environement != 'cmake' }}
run: |
cd Project/GNU/Library
make clone_regression_files
- name: Check
if: ${{ matrix.environement != 'cmake' }}
run: |
sudo npm install -g jsonlint
cd Project/GNU/Library
make check
- name: CMake Build
if: ${{ matrix.environement == 'normal' }}
if: ${{ matrix.environement == 'cmake' }}
run: |
mkdir Project/CMake/Build
cd Project/CMake/Build
Expand Down

0 comments on commit 5e8bc85

Please sign in to comment.