Skip to content

release

release #1

Workflow file for this run

# Copyright (c) 2023 Devexperts LLC.
# SPDX-License-Identifier: MPL-2.0
name: release
on:
workflow_dispatch:
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: 'Release'
jobs:
build_package_and_upload:
name: Build, Package & Upload
strategy:
matrix:
# os: [windows-latest, macos-latest, ubuntu-latest]
os: [ windows-latest, macos-latest, ubuntu-22.04 ]
buildType: [ Release, Debug ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Prepare build
run: |
ls
mkdir ${{github.workspace}}/build-${{matrix.buildType}}
- uses: actions-ecosystem/action-get-latest-tag@v1
id: get-latest-tag
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build-${{matrix.buildType}} -DCMAKE_BUILD_TYPE=${{matrix.buildType}} -DDXFCXX_VERSION=${{steps.get-latest-tag.outputs.tag}} -DDXFCXX_PACKAGE_SUFFIX=-${{matrix.buildType}}
- name: Build
run: cmake --build ${{github.workspace}}/build-${{matrix.buildType}} --config ${{matrix.buildType}}
- name: Pack
working-directory: ${{github.workspace}}/build-${{matrix.buildType}}
run: cpack -G ZIP -C ${{matrix.buildType}} --config ./dxFeedGraalCxxApiPackConfig.cmake
- name: Upload
uses: actions/upload-artifact@v3
with:
name: dxFeedGraalCxxApi
path: build-${{matrix.buildType}}/*.zip
publish_release:
runs-on: ubuntu-latest
name: Publish Release
needs: [build_package_and_upload]
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
- name: 'Echo download path'
run: echo ${{steps.download.outputs.download-path}}
- name: Display structure of downloaded files
run: ls -R