-
-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: Add an on-demand cross platform build check runner
Signed-off-by: Siddharth Chandrasekaran <[email protected]>
- Loading branch information
Showing
1 changed file
with
39 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# | ||
# Copyright (c) 2024 Siddharth Chandrasekaran <[email protected]> | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
name: Cross Platform Build | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
cross_platform_build: | ||
name: Build on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
# macos-13 is an intel runner, macos-14 is apple silicon | ||
os: [ubuntu-latest, macos-13, macos-14, windows-latest] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- name: Configure | ||
run: | | ||
cmake -DCMAKE_BUILD_TYPE=Debug . | ||
- name: Build | ||
run: VERBOSE=1 make | ||
- name: Pack built binaries | ||
run: | | ||
make package | ||
make package_source | ||
rm -rf ./packages/_CPack_Packages/ | ||
rm -f ./packages/*.tar.bz2 | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: libosdp-${{ matrix.os }}-binaries.zip | ||
path: ./packages/ |