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

Backport workflow changes to 0.28.x branch #2919

Merged
merged 6 commits into from
Feb 13, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
3 changes: 1 addition & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ jobs:

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libexpat1-dev zlib1g-dev libbrotli-dev libinih-dev
sudo eatmydata apt-get -y install libexpat1-dev zlib1g-dev libbrotli-dev libinih-dev

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
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
23 changes: 12 additions & 11 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 eatmydata apt-get -y install libxml2-dev libxslt-dev python3-dev ninja-build gcovr
python3 -m pip install conan==1.*

- 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,10 +135,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
6 changes: 3 additions & 3 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 Expand Up @@ -129,7 +129,7 @@ jobs:

- name: Build packaged release
run: |
cmake --preset win-release -S . -B build -DEXIV2_TEAM_PACKAGING=ON -DEXIV2_BUILD_DOC=ON -DEXIV2_ENABLE_WEBREADY=OFF -DEXIV2_ENABLE_CURL=OFF -DEXIV2_BUILD_SAMPLES=OFF
cmake --preset win-release -S . -B build -DEXIV2_TEAM_PACKAGING=ON -DEXIV2_BUILD_DOC=ON -DEXIV2_ENABLE_WEBREADY=OFF -DEXIV2_ENABLE_CURL=OFF
cmake --build build --parallel -t doc
cmake --build build --parallel -t package

Expand Down
Loading