Skip to content

Update maven-publish.yml #19

Update maven-publish.yml

Update maven-publish.yml #19

Workflow file for this run

# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created
# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path
name: Maven Package
on:
push:
branches:
- 'main'
jobs:
build_jar:
name: Build dxfeed-jni-native-sdk JAR on ${{ matrix.OS_NAME }}
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'corretto'
- name: Build with Maven
run: mvn -B package --file pom.xml
# - run: mkdir staging && cp target/dxfeed-jni-native-sdk-*.jar staging
# - uses: actions/upload-artifact@v4
# with:
# name: Package
# path: staging
# - name: Publish package
# run: mvn -B deploy
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build_native:
name: Build dxfeed-jni-native-sdk shared native library on ${{ matrix.OS_NAME }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: windows-latest
OS_NAME: win-x64
script_name: build_release
shell_name: cmd
- os: ubuntu-latest
OS_NAME: linux-x64
script_name: sh build_release.sh
shell_name: sh
- os: macos-latest
OS_NAME: osx-x64
script_name: sh build_release.sh
shell_name: sh
steps:
- name: Checkout
uses: actions/checkout@master
- name: Build DxFeedJniNativeSdk
shell: ${{ matrix.shell_name }}

Check failure on line 64 in .github/workflows/maven-publish.yml

View workflow run for this annotation

GitHub Actions / Maven Package

Invalid workflow file

The workflow is not valid. .github/workflows/maven-publish.yml (Line: 64, Col: 14): Unrecognized named-value: 'matrix'. Located at position 1 within expression: matrix.shell_name
run: ${{ matrix.script_name }}
working-directory: ${{ github.workspace }}/src/main/c/jni-lib