Skip to content

Commit

Permalink
mutiple os fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vaisakhkannan committed Jan 15, 2025
1 parent fca58eb commit 0d3a117
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,25 @@ on:

jobs:
build:
runs-on: ${{ matrix.os }}
runs-on: ${{ matrix.os.value }}
strategy:
fail-fast: false
# matrix:
# os: [ ubuntu-latest, macOS-latest, windows-latest, ubuntu-latest, macOS-latest, windows-latest ]
matrix:
os: [ ubuntu-latest, macOS-latest, windows-latest, ubuntu-latest, macOS-latest, windows-latest ]
os:
- name: ubuntu-latest-1
value: ubuntu-latest
- name: macOS-latest-1
value: macOS-latest
- name: windows-latest-1
value: windows-latest
- name: ubuntu-latest-2
value: ubuntu-latest
- name: macOS-latest-2
value: macOS-latest
- name: windows-latest-2
value: windows-latest
# Adding a check to verify if 'refLTITag' is equal to '24.0.9'..
# This code can be removed once the '24.0.9' version is removed from the 'tag' array in the cron job build, and the previous code can be added back.
excludeLTITag:
Expand Down Expand Up @@ -108,7 +122,7 @@ jobs:
if: ${{ runner.os == 'Linux' && !failure() }}
uses: actions/[email protected]
with:
name: liberty-tools-intellij-LTI-${{ env.REF_LTI_TAG || 'default' }}-LSP4IJ-${{ env.LSP4IJ_BRANCH }}
name: artifacts-${{ matrix.os.name }}-liberty-tools-intellij-LTI-${{ env.REF_LTI_TAG || 'default' }}-LSP4IJ-${{ env.LSP4IJ_BRANCH }}
path: |
./**/*liberty-tools-intellij*.zip
./**/libs/*liberty-tools-intellij*.jar
Expand All @@ -122,6 +136,6 @@ jobs:
if: ${{ failure() && steps.run_tests.conclusion == 'failure' }}
uses: actions/[email protected]
with:
name: ${{ matrix.os }}-test-report-LTI-${{ env.REF_LTI_TAG || 'default' }}-LSP4IJ-${{ env.LSP4IJ_BRANCH }}
name: ${{ matrix.os.name }}-test-report-LTI-${{ env.REF_LTI_TAG || 'default' }}-LSP4IJ-${{ env.LSP4IJ_BRANCH }}
path: |
liberty-tools-intellij/build/reports/

0 comments on commit 0d3a117

Please sign in to comment.