-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add macOS/iOS/iOSSimulator CI builds
Signed-off-by: Raul Metsma <[email protected]>
- Loading branch information
Showing
5 changed files
with
133 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 |
---|---|---|
|
@@ -40,3 +40,48 @@ jobs: | |
with: | ||
name: ubuntu_${{ matrix.container }} | ||
path: libcdoc*.* | ||
macos: | ||
name: Build on macOS for ${{ matrix.target }} | ||
runs-on: macos-latest | ||
strategy: | ||
matrix: | ||
target: [macos, iphoneos, iphonesimulator] | ||
include: | ||
- target: iphoneos | ||
triplet: arm64-ios | ||
- target: iphonesimulator | ||
triplet: arm64-ios-simulator | ||
env: | ||
DEST: ${{ github.workspace }}/${{ matrix.target }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Install dependencies | ||
run: | | ||
brew update | ||
brew install --formula ninja flatbuffers swig doxygen boost [email protected] | ||
brew unlink [email protected] || true | ||
brew unlink [email protected] || true | ||
- name: Prepare vcpkg | ||
if: matrix.target != 'macos' | ||
uses: lukka/run-vcpkg@v11 | ||
with: | ||
vcpkgGitCommitId: e4644bd15436d406bba71928d086c809e5c9ca45 | ||
vcpkgJsonGlob: ./vcpkg.json | ||
runVcpkgInstall: true | ||
env: | ||
VCPKG_DEFAULT_TRIPLET: ${{ matrix.triplet }} | ||
- name: Build | ||
run: | | ||
cmake --preset ${{ matrix.target }} -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=${{ env.DEST }} | ||
cmake --build --preset ${{ matrix.target }} | ||
- name: Test | ||
if: matrix.target == 'macos' | ||
run: cmake --build --preset ${{ matrix.target }} --target test | ||
- name: Install | ||
run: cmake --build --preset ${{ matrix.target }} --target install/strip | ||
- name: Archive artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ matrix.target }} | ||
path: ${{ env.DEST }}/** |
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 was deleted.
Oops, something went wrong.
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