-
Notifications
You must be signed in to change notification settings - Fork 296
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat conan: build and test more components
Fixes: #664 Tests: протестировано CI Pull Request resolved: #818 commit_hash:a282d1be391e9cc65fa56e30a0b1cdacb352a7b2
- Loading branch information
Showing
14 changed files
with
58 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,19 +27,17 @@ jobs: | |
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install Ubuntu packages | ||
if: matrix.os == 'ubuntu-22.04' | ||
run: | | ||
sudo apt-get install -y gcc g++ cmake wget git python3 python3-pip python3-venv postgresql | ||
sudo apt-get install -y gcc g++ cmake wget git python3 python3-pip python3-venv postgresql redis clang-format | ||
- name: Install MacOS packages | ||
if: matrix.os == 'macos-latest' | ||
run: | | ||
brew update | ||
brew install postgresql | ||
brew install postgresql redis clang-format | ||
brew install libiconv # https://stackoverflow.com/questions/57734434/libiconv-or-iconv-undefined-symbol-on-mac-osx | ||
brew install [email protected] | ||
|
@@ -56,9 +54,23 @@ jobs: | |
- name: Test userver conan package | ||
run: | | ||
mv libraries/easy/samples/3_json samples/ | ||
mv scripts/tests/conanfile.py samples/ | ||
rm -rf userver/cmake/ | ||
cd samples/ | ||
USERVER_VERSION=$(conan list -c -v quiet userver/* | tail -n 1) | ||
for SAMPLE in hello_service embedded_files postgres_service grpc_service; do | ||
cp scripts/tests/conanfile.py samples/$SAMPLE/ | ||
conan test samples/$SAMPLE/ --build=never -s:a compiler.cppstd=17 -pr:b=default ${{matrix.conanflags}} ${USERVER_VERSION} | ||
rm samples/$SAMPLE/conanfile.py | ||
for SAMPLE in \ | ||
3_json \ | ||
chaotic_service \ | ||
embedded_files \ | ||
grpc_service \ | ||
hello_service \ | ||
postgres_service \ | ||
redis_service \ | ||
s3api \ | ||
; do | ||
mv conanfile.py $SAMPLE/ | ||
conan test $SAMPLE/ --build=never -s:a compiler.cppstd=17 -pr:b=default ${{matrix.conanflags}} ${USERVER_VERSION} | ||
mv $SAMPLE/conanfile.py ./ | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
libraries/easy/samples/6_pg_service_template_no_http_with/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters