-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use vcpkg for android dependency tracking
IB-8161 Signed-off-by: Raul Metsma <[email protected]>
- Loading branch information
Showing
12 changed files
with
128 additions
and
265 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 |
---|---|---|
|
@@ -12,7 +12,7 @@ jobs: | |
runs-on: macos-latest | ||
strategy: | ||
matrix: | ||
target: [macos, iphoneos, iphonesimulator, androidarm, androidarm64, androidx86_64] | ||
target: [macos, iphoneos, iphonesimulator] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
@@ -22,6 +22,7 @@ jobs: | |
brew install --formula ninja swig doxygen boost | ||
brew unlink [email protected] || true | ||
brew unlink [email protected] || true | ||
brew unlink [email protected] || true | ||
brew unlink xz | ||
- name: Cache | ||
uses: actions/cache@v4 | ||
|
@@ -32,9 +33,6 @@ jobs: | |
- name: Build openssl | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: ./prepare_osx_build_environment.sh openssl ${{ matrix.target }} | ||
- name: Build libxml2 | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: ./prepare_osx_build_environment.sh libxml2 ${{ matrix.target }} | ||
- name: Build xmlsec | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: ./prepare_osx_build_environment.sh xmlsec ${{ matrix.target }} | ||
|
@@ -60,13 +58,42 @@ jobs: | |
cd /Library | ||
zip -q -r ${OLDPWD}/libdigidocpp.${{ matrix.target }}.zip libdigidocpp.* | ||
- name: Archive artifacts | ||
if: matrix.target == 'macos' | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: macOS | ||
path: build/macos/libdigidocpp*.* | ||
name: ${{ matrix.target }} | ||
path: build/macos/libdigidocpp*.* libdigidocpp*.zip | ||
android: | ||
name: Build on Ubuntu for ${{ matrix.target }} | ||
runs-on: ubuntu-24.04 | ||
strategy: | ||
matrix: | ||
include: | ||
- target: androidarm | ||
triplet: arm-neon-android | ||
- target: androidarm64 | ||
triplet: arm64-android | ||
- target: androidx86_64 | ||
triplet: x64-android | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
- name: Prepare vcpkg | ||
uses: lukka/run-vcpkg@v11 | ||
with: | ||
vcpkgGitCommitId: e2edf52610d2c94d2038fe30b247ea5a26964e1b | ||
vcpkgJsonGlob: ./vcpkg.json | ||
runVcpkgInstall: true | ||
env: | ||
VCPKG_DEFAULT_TRIPLET: ${{ matrix.triplet }} | ||
- name: Build | ||
run: | | ||
cmake --preset ${{ matrix.target }} "-GUnix Makefiles" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=libdigidocpp.${{ matrix.target }} | ||
cmake --build --preset ${{ matrix.target }} | ||
cmake --build --preset ${{ matrix.target }} --target install/strip | ||
zip -q -r libdigidocpp.${{ matrix.target }}.zip libdigidocpp.${{ matrix.target }} | ||
- name: Archive artifacts | ||
if: matrix.target != 'macos' | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ matrix.target }} | ||
|
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
Oops, something went wrong.