Merge pull request #8 from threeal/test-on-multiple-os

Test on Multiple OSs
This commit is contained in:
Alfi Maulana 2023-01-07 15:39:25 +07:00 committed by GitHub
commit 716924ee3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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