Commit 54489e4276d4d499083baecfb0289a8d38b41a6c
Committed by
GitHub
1 parent
4fcadd83
Add the two available OS (#306)
Showing
1 changed file
with
6 additions
and
1 deletions
.github/workflows/cmake.yml
| @@ -5,6 +5,7 @@ on: | @@ -5,6 +5,7 @@ on: | ||
| 5 | branches: [ master ] | 5 | branches: [ master ] |
| 6 | pull_request: | 6 | pull_request: |
| 7 | branches: [ master ] | 7 | branches: [ master ] |
| 8 | + workflow_dispatch: | ||
| 8 | 9 | ||
| 9 | env: | 10 | env: |
| 10 | # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | 11 | # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) |
| @@ -16,7 +17,11 @@ jobs: | @@ -16,7 +17,11 @@ jobs: | ||
| 16 | # well on Windows or Mac. You can convert this to a matrix build if you need | 17 | # well on Windows or Mac. You can convert this to a matrix build if you need |
| 17 | # cross-platform coverage. | 18 | # cross-platform coverage. |
| 18 | # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix | 19 | # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix |
| 19 | - runs-on: ubuntu-latest | 20 | + runs-on: ${{matrix.os}} |
| 21 | + | ||
| 22 | + strategy: | ||
| 23 | + matrix: | ||
| 24 | + os: [ubuntu-18.04, ubuntu-20.04] | ||
| 20 | 25 | ||
| 21 | steps: | 26 | steps: |
| 22 | - uses: actions/checkout@v2 | 27 | - uses: actions/checkout@v2 |