Skip to content

Commit

Permalink
add build action for unsupported platforms (#7)
Browse files Browse the repository at this point in the history
Fix acquire-python build failures on Ubuntu and Mac
  • Loading branch information
aliddell authored May 11, 2023
1 parent d94ee9b commit 48f5897
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/unsupported_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Unsupported platform build

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:
strategy:
matrix:
build_type: [ Debug, Release ]
platform: [ "ubuntu-latest", "macos-latest" ]

runs-on: ${{ matrix.platform }}

permissions:
actions: write

steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

- uses: actions/checkout@v3
with:
submodules: recursive

- name: CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.build_type}}

- name: Build
run: |
cmake --build ${{github.workspace}}/build --config ${{matrix.build_type}}
cpack --config ${{github.workspace}}/build/CPackConfig.cmake -C ${{matrix.build_type}} -G ZIP
- uses: actions/upload-artifact@v3
with:
name: ${{matrix.platform}} ${{matrix.build_type}} binaries
path: ${{github.workspace}}/*.zip

0 comments on commit 48f5897

Please sign in to comment.