Skip to content

Package DxFeedJniNativeSdk artifacts #68

Package DxFeedJniNativeSdk artifacts

Package DxFeedJniNativeSdk artifacts #68

Workflow file for this run

name: Package DxFeedJniNativeSdk artifacts
on:
push:
branches:
- 'main'
tags:
- "v*.*.*"
jobs:
build_jar:
name: Build dxfeed-jni-native-sdk JAR
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: dxfeed-jni-native-sdk.zip
path: staging
overwrite: true
# 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: cmd.exe /c build_release.cmd
# working_directory: src\main\c\jni-lib
# - os: ubuntu-latest
# OS_NAME: linux-x64
# script_name: sh build_release.sh
# working_directory: src/main/c/jni-lib
# - os: macos-latest
# OS_NAME: osx-x64
# script_name: sh build_release.sh
# working_directory: src/main/c/jni-lib
#
# steps:
# - name: Checkout
# uses: actions/checkout@master
#
# - name: Build DxFeedJniNativeSdk
# run: ${{ matrix.script_name }}
# working-directory: ${{ matrix.working_directory }}
#
# - run: mkdir staging && cp ${{ matrix.working_directory }}/build/DxFeedJniNativeSdk.* staging
# - uses: actions/upload-artifact@v4
# with:
# name: DxFeedJniNativeSdk-${{ matrix.OS_NAME }}
# path: staging
# overwrite: true
release:
needs: build_jar
# if: (startsWith(github.event.ref, 'refs/tags/'))
name: Release
runs-on: macos-latest
# defaults:
# run:
# working-directory: ${{ github.workspace }}
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
- name: Replace part of tag
run: echo "custom_tag=latest-unstable" >> $GITHUB_ENV
- run: ls -la
- run: cd ${{ github.workspace }}/dxfeed-jni-native-sdk
- run: ls -la
k

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

View workflow run for this annotation

GitHub Actions / .github/workflows/maven-publish.yml

Invalid workflow file

You have an error in your yaml syntax on line 87
- name: Upload Tools
uses: softprops/action-gh-release@v1
with:
name: Latest unstable
body: This is the latest unstable build version, feel free to test it out. Most of the time only the windows build got tested!
tag_name: ${{ env.custom_tag }}-${{ GITHUB.RUN_NUMBER }}
draft: false
prerelease: true
generate_release_notes: true
files: |
${{ github.workspace }}/dxfeed-jni-native-sdk
# ${{ github.workspace }}/DxFeedJniNativeSdk-win-x64
# ${{ github.workspace }}/DxFeedJniNativeSdk-linux-x64
# ${{ github.workspace }}/DxFeedJniNativeSdk-osx-x64