From e0025846374d0a1f8d93061b7f306fbfa1fc841c Mon Sep 17 00:00:00 2001 From: Siddharth Chandrasekaran Date: Thu, 21 Mar 2024 08:23:30 +0100 Subject: [PATCH] CI: Add an on-demand cross platform build check runner Signed-off-by: Siddharth Chandrasekaran --- .github/workflows/cross-plaform-build.yml | 39 +++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/cross-plaform-build.yml diff --git a/.github/workflows/cross-plaform-build.yml b/.github/workflows/cross-plaform-build.yml new file mode 100644 index 0000000..92bad69 --- /dev/null +++ b/.github/workflows/cross-plaform-build.yml @@ -0,0 +1,39 @@ +# +# Copyright (c) 2024 Siddharth Chandrasekaran +# +# 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/ \ No newline at end of file