mirror of
https://github.com/threeal/cmake-action.git
synced 2025-06-08 18:21:20 +00:00
run action with specified generator job on multiple platforms
This commit is contained in:
parent
fd57ca9c23
commit
f290ba80de
5
.github/workflows/test.yml
vendored
5
.github/workflows/test.yml
vendored
@ -74,7 +74,10 @@ jobs:
|
|||||||
run: build/${{ matrix.lang == 'C' && 'hello_world_c' || 'hello_world' }}
|
run: build/${{ matrix.lang == 'C' && 'hello_world_c' || 'hello_world' }}
|
||||||
|
|
||||||
use-action-with-specified-generator:
|
use-action-with-specified-generator:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ${{ matrix.os }}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [windows-latest, ubuntu-latest, macos-latest]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3.3.0
|
uses: actions/checkout@v3.3.0
|
||||||
|
@ -51,7 +51,12 @@ runs:
|
|||||||
- name: Install Ninja
|
- name: Install Ninja
|
||||||
if: ${{ inputs.generator == 'Ninja' }}
|
if: ${{ inputs.generator == 'Ninja' }}
|
||||||
shell: bash
|
shell: bash
|
||||||
run: sudo apt install -y ninja-build
|
run: |
|
||||||
|
case "$OSTYPE" in
|
||||||
|
darwin*) brew install ninja ;;
|
||||||
|
linux*) sudo apt install -y ninja-build ;;
|
||||||
|
*) choco install ninja ;;
|
||||||
|
esac
|
||||||
|
|
||||||
- name: Configure CMake
|
- name: Configure CMake
|
||||||
shell: bash
|
shell: bash
|
||||||
|
Loading…
Reference in New Issue
Block a user