Skip to content

Commit

Permalink
CI: Add an on-demand cross platform build check runner
Browse files Browse the repository at this point in the history
Signed-off-by: Siddharth Chandrasekaran <[email protected]>
  • Loading branch information
sidcha committed Mar 21, 2024
1 parent 5890760 commit e002584
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/cross-plaform-build.yml
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/

0 comments on commit e002584

Please sign in to comment.