Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
melchi45 authored Jan 11, 2022
1 parent ea60fd0 commit 7569a84
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
OUT_PATH: install
# OUT_PATH: install
CHECKOUT_REF: 'v103.0.0'
ARCHIVE_NAME: ${{ github.event.repository.name }}-${{ github.event.release.tag_name }}
jobs:
Expand All @@ -36,22 +36,22 @@ jobs:
- name: Configure CMake Static Library
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: cmake -B ${{github.workspace}}/static -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_INSTALL_PREFIX=${{env.OUT_PATH}}_static -DLIVE555_ENABLE_OPENSSL=ON -DLIVE555_BUILD_EXAMPLES=ON
run: cmake -B ${{github.workspace}}/static -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_INSTALL_PREFIX=static -DLIVE555_ENABLE_OPENSSL=ON -DLIVE555_BUILD_EXAMPLES=ON

- name: Configure CMake Shared Library
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: cmake -B ${{github.workspace}}/shared -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_INSTALL_PREFIX=${{env.OUT_PATH}}_shared -DLIVE555_ENABLE_OPENSSL=ON -DLIVE555_BUILD_EXAMPLES=ON -DLIVE555_BUILD_SHARED_LIBS=ON
run: cmake -B ${{github.workspace}}/shared -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_INSTALL_PREFIX=shared -DLIVE555_ENABLE_OPENSSL=ON -DLIVE555_BUILD_EXAMPLES=ON -DLIVE555_BUILD_SHARED_LIBS=ON

- name: Build Static Library
# Build your program with the given configuration
run:
cmake --build ${{github.workspace}}/static --config ${{env.BUILD_TYPE}} --target ${{env.OUT_PATH}}_static
cmake --build ${{github.workspace}}/static --config ${{env.BUILD_TYPE}} --target static

- name: Build Shared Library
# Build your program with the given configuration
run:
cmake --build ${{github.workspace}}/shared --config ${{env.BUILD_TYPE}} --target ${{env.OUT_PATH}}_shared
cmake --build ${{github.workspace}}/shared --config ${{env.BUILD_TYPE}} --target shared

- name: Test Static
working-directory: ${{github.workspace}}/static
Expand All @@ -70,8 +70,8 @@ jobs:
- name: create-archive
id: create_archive
run:
tar -czf "$ARCHIVE_NAME"_static.tar.gz "$OUT_PATH"_static
tar -czf "$ARCHIVE_NAME"_shared.tar.gz "$OUT_PATH"_shared
tar -czf "$ARCHIVE_NAME"_static.tar.gz static
tar -czf "$ARCHIVE_NAME"_shared.tar.gz shared

- name: create-checksum
id: create-checksum
Expand Down

0 comments on commit 7569a84

Please sign in to comment.