Skip to content

Commit

Permalink
Selectable os from matrix 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo Saporetti Junior committed Dec 6, 2023
1 parent 7fac47e commit 4da8154
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,16 @@ jobs:
build:
strategy:
matrix:
os:
- "ubuntu-latest"
- "fedora-latest"
- "alpine-latest"
- "macOS-latest"
include:
- os: "ubuntu-latest"
build: ${{ inputs.build_ubuntu }}
- os: "fedora-latest"
build: ${{ inputs.build_fedora }}
- os: "alpine-latest"
build: ${{ inputs.build_alpine }}
- os: "macOS-latest"
build: ${{ inputs.build_macos }}
runs-on: ${{ matrix.os }}
if: |
(inputs.build_ubuntu == 'true' && matrix.os == 'ubuntu-latest') ||
(inputs.build_fedora == 'true' && matrix.os == 'fedora-latest') ||
(inputs.build_alpine == 'true' && matrix.os == 'alpine-latest') ||
(inputs.build_macos == 'true' && matrix.os == 'macOS-latest')
steps:
- uses: actions/checkout@v3
with:
Expand Down

0 comments on commit 4da8154

Please sign in to comment.