mirror of
https://github.com/threeal/cmake-action.git
synced 2025-04-21 19:11: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:
|
push:
|
||||||
jobs:
|
jobs:
|
||||||
use-action:
|
use-action:
|
||||||
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
|
||||||
@ -16,7 +19,7 @@ jobs:
|
|||||||
uses: ./
|
uses: ./
|
||||||
|
|
||||||
- name: Run build result
|
- 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:
|
use-action-with-specified-source-dir:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
Loading…
Reference in New Issue
Block a user