Skip to content

Commit

Permalink
fix workflow file issues, test matrix.java
Browse files Browse the repository at this point in the history
  • Loading branch information
haidubogdan committed Nov 3, 2024
1 parent e178596 commit 197b42d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 23 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/nb_modular.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,30 +33,36 @@ jobs:
tag_name: ${{ inputs.tag-version }}
body_path: .github/workflows/CHANGELOG.md
build:
needs: create_release
needs: create_release
strategy:
matrix:
label: [18, 19, 20, 21, 22, 23]
include:
- label: 18
version: 18-7d33005615b3c744564f3d38ab9ef14bf8c3ec44
java: 8
- label: 19
version: 19-ba85468772292fd64f188f4022f9d49f77f00b89
java: 8
- label: 20
version: 20-91f9ed846ac143b52d50b5ea323a42c2f7e78392
java: 8
- label: 21
version: 21-b15c9b7692b2764be5a997d056e2283b72ae9131
java: 8
- label: 22
version: 22-0d0bfcf3faf364a2643238f2a44e1bb6eb8217bd
java: 8
- label: 23
version: 23-2985f1fa57ce0c1877bad0f86d5e5504d65f9286
java: 11
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '8'
java-version: '${{ matrix.java }}'
distribution: 'temurin'
- name : get version
run: echo "::set-output name=version::$(grep 'OpenIDE-Module-Specification-Version' ./manifest.mf | cut -d':' -f 2-)"
Expand Down Expand Up @@ -99,7 +105,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: php-laravel-nbm-${{ matrix.label }}
path: ./nb-plugin-package/target/nbm/*.nbm
path: ./nb-plugin-package/target/nbm/*.nbm
- name: upload nbm artifact
uses: actions/upload-release-asset@v1
env:
Expand Down
32 changes: 12 additions & 20 deletions .github/workflows/nb_modular_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,13 @@ name: nbm modular package

on:
workflow_dispatch:
inputs:
tag-version:
required: true
type: string
pre-release:
required: true
type: boolean

jobs:
create_release:
package:
name: Create package
runs-on: ubuntu-latest
steps:
- name: Create package
run: echo "package"
build:
needs: package
strategy:
Expand All @@ -25,23 +20,29 @@ jobs:
include:
- label: 18
version: 18-7d33005615b3c744564f3d38ab9ef14bf8c3ec44
java: 8
- label: 19
version: 19-ba85468772292fd64f188f4022f9d49f77f00b89
java: 8
- label: 20
version: 20-91f9ed846ac143b52d50b5ea323a42c2f7e78392
java: 8
- label: 21
version: 21-b15c9b7692b2764be5a997d056e2283b72ae9131
java: 8
- label: 22
version: 22-0d0bfcf3faf364a2643238f2a44e1bb6eb8217bd
java: 8
- label: 23
version: 23-2985f1fa57ce0c1877bad0f86d5e5504d65f9286
java: 11
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '8'
java-version: '${{ matrix.java }}'
distribution: 'temurin'
- name : get version
run: echo "::set-output name=version::$(grep 'OpenIDE-Module-Specification-Version' ./manifest.mf | cut -d':' -f 2-)"
Expand Down Expand Up @@ -84,13 +85,4 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: php-laravel-nbm-${{ matrix.label }}
path: ./nb-plugin-package/target/nbm/*.nbm
- name: upload nbm artifact
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ needs.create_release.outputs.upload_url }}
asset_path: ./nb-plugin-package/target/nbm/php.laravel.framework-1.0.0.nbm
asset_name: php-laravel${{ matrix.label }}-${{ steps.nbm_version.outputs.version }}.nbm
asset_content_type: application/nbm
path: ./nb-plugin-package/target/nbm/*.nbm

0 comments on commit 197b42d

Please sign in to comment.