Update maven-publish.yml #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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.cmd | |
- os: ubuntu-latest | |
OS_NAME: linux-x64 | |
script_name: sh build_release.sh | |
- os: macos-latest | |
OS_NAME: osx-x64 | |
script_name: sh build_release.sh | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
- name: Build DxFeedJniNativeSdk | |
run: ${{ matrix.script_name }} | |
working-directory: ${{ github.workspace }}/src/main/c/jni-lib | |