mirror of
https://github.com/threeal/cmake-action.git
synced 2025-04-21 02:51:21 +00:00
Merge pull request #8 from threeal/test-on-multiple-os
Test on Multiple OSs
This commit is contained in:
commit
716924ee3c
7
.github/workflows/test.yml
vendored
7
.github/workflows/test.yml
vendored
@ -4,7 +4,10 @@ on:
|
||||
push:
|
||||
jobs:
|
||||
use-action:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [windows-latest, ubuntu-latest, macos-latest]
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3.3.0
|
||||
@ -16,7 +19,7 @@ jobs:
|
||||
uses: ./
|
||||
|
||||
- name: Run build result
|
||||
run: build/hello_world
|
||||
run: ${{ matrix.os == 'windows-latest' && 'build\Debug\hello_world.exe' || 'build/hello_world' }}
|
||||
|
||||
use-action-with-specified-source-dir:
|
||||
runs-on: ubuntu-latest
|
||||
|
Loading…
Reference in New Issue
Block a user