Skip to content

Commit

Permalink
Update maven-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Montura authored Jan 21, 2024
1 parent dd02aa5 commit 4a538d7
Showing 1 changed file with 33 additions and 17 deletions.
50 changes: 33 additions & 17 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ on:

jobs:
build_jar:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
name: Build dxfeed-jni-native-sdk JAR on ${{ matrix.OS_NAME }}
runs-on: macos-latest

steps:
- uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v3

- name: Set up JDK 8
uses: actions/setup-java@v3
with:
Expand All @@ -26,23 +26,39 @@ jobs:
- 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
# - 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 -U
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Publish package
# run: mvn -B deploy
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build_native:
runs-on: ubuntu-latest
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: build_release.sh
- os: macos-latest
OS_NAME: osx-x64
script_name: build_release.sh

steps:
- uses: actions/checkout@master
- name: Checkout
uses: actions/checkout@master

- name: Build DxFeedJniNativeSdk
run: sh build_release.sh
run: ${{ matrix.script_name }}
working-directory: src/main/c/jni-lib


0 comments on commit 4a538d7

Please sign in to comment.