Skip to content

Commit

Permalink
CI: use system ninja
Browse files Browse the repository at this point in the history
  • Loading branch information
kmilos committed Feb 13, 2024
1 parent a08de6f commit 16584be
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 40 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/on_PR_linux_matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: install dependencies
- name: Install dependencies
run: |
sudo apt install -y tree
python3 -m pip install conan==1.* ninja
sudo apt install -y tree ninja-build
python3 -m pip install conan==1.*
- name: Conan common config
run: |
Expand Down
28 changes: 15 additions & 13 deletions .github/workflows/on_PR_linux_special_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
fetch-depth: 2
# Trying to deal with warning: -> Issue detecting commit SHA. Please run actions/checkout with fetch-depth > 1 or set to 0

- name: install dependencies
- name: Install dependencies
run: |
sudo apt-get install -y libxml2-dev libxslt-dev python3-dev
python3 -m pip install conan==1.* gcovr ninja
sudo apt-get install -y libxml2-dev libxslt-dev python3-dev ninja-build
python3 -m pip install conan==1.* gcovr
- name: Conan common config
run: |
Expand Down Expand Up @@ -66,10 +66,10 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: install dependencies
- name: Install dependencies
run: |
sudo apt install -y valgrind
python3 -m pip install conan==1.* ninja
sudo apt install -y valgrind ninja-build
python3 -m pip install conan==1.*
- name: Conan common config
run: |
Expand Down Expand Up @@ -101,9 +101,10 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: install dependencies
- name: Install dependencies
run: |
python3 -m pip install conan==1.* ninja
sudo apt install -y ninja-build
python3 -m pip install conan==1.*
- name: Conan common config
run: |
Expand Down Expand Up @@ -134,9 +135,10 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: install dependencies
- name: Install dependencies
run: |
python3 -m pip install conan==1.* ninja
sudo apt install -y ninja-build
python3 -m pip install conan==1.*
- name: Conan common config
run: |
Expand All @@ -155,10 +157,10 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: install dependencies
- name: Install dependencies
run: |
sudo apt install -y valgrind doxygen graphviz gettext
python3 -m pip install conan==1.* ninja
sudo apt install -y valgrind doxygen graphviz gettext ninja-build
python3 -m pip install conan==1.*
- name: Conan common config
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/on_PR_linux_staticAnalysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
fetch-depth: 2
# Trying to deal with warning: -> Issue detecting commit SHA. Please run actions/checkout with fetch-depth > 1 or set to 0

- name: install dependencies
- name: Install dependencies
run: |
python3 -m pip install conan==1.*
sudo add-apt-repository ppa:ubuntu-lxc/daily -y
Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/on_PR_mac_matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

jobs:
MacOS:
name: 'MacOS - clang, BuildType:${{matrix.build_type}}, SHARED:${{matrix.shared_libraries}}'
name: 'macOS - XCode - ${{matrix.build_type}} - SHARED:${{matrix.shared_libraries}}'
runs-on: macos-latest

strategy:
Expand All @@ -23,11 +23,9 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: install dependencies
- name: Install dependencies
run: |
brew install ninja
brew install inih
brew install googletest
brew install ninja inih googletest
- name: Build
run: |
Expand All @@ -41,5 +39,4 @@ jobs:
- name: Test
run: |
cd build
ctest --output-on-failure
ctest --test-dir build --output-on-failure
13 changes: 5 additions & 8 deletions .github/workflows/on_PR_mac_special_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,21 @@ on:

jobs:
MacOS_releaseSanitizers:
name: 'MacOS - Clang - Release+Sanitizers'
name: 'macOS - XCode - Release+Sanitizers'
runs-on: macos-latest

steps:
- uses: actions/checkout@v4

- name: install dependencies
- name: Install dependencies
run: |
brew install ninja
brew install inih
brew install googletest
brew install ninja inih googletest
- name: Build
run: |
cmake --preset base_mac -S . -B build -DEXIV2_TEAM_USE_SANITIZERS=ON
cmake --build build --parallel
- name: Tests
- name: Test
run: |
cd build
ctest --output-on-failure
ctest --test-dir build --output-on-failure
4 changes: 1 addition & 3 deletions .github/workflows/on_push_BasicWinLinMac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,7 @@ jobs:

- name: Install dependencies
run: |
brew install ninja
brew install inih
brew install googletest
brew install ninja inih googletest
- name: Build
run: |
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/on_push_ExtraJobsForMain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: install dependencies
- name: Install dependencies
run: |
python3 -m pip install conan==1.* gcovr ninja
sudo apt-get install ninja-build
python3 -m pip install conan==1.* gcovr
- name: Conan common config
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ jobs:

- name: Install dependencies
run: |
sudo apt install -y gettext doxygen graphviz
python -m pip install conan==1.* ninja
sudo apt install -y gettext doxygen graphviz ninja-build
python -m pip install conan==1.*
- name: Conan common config
run: |
Expand Down
2 changes: 1 addition & 1 deletion ci/install_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ debian_build_gtest() {
centos_build_inih() {
[-d inih_build ] || git clone https://github.com/benhoyt/inih.git inih_build
cd inih_build
git checkout r57
git checkout r58
meson --buildtype=plain builddir
meson compile -C builddir
meson install -C builddir
Expand Down

0 comments on commit 16584be

Please sign in to comment.