Skip to content

Add transitive headers to release build output. #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,19 @@ jobs:
echo "packageLabel=$label" >> $env:GITHUB_OUTPUT
echo "packagePath=$folderPath" >> $env:GITHUB_OUTPUT

# Dependencies
$nlohmann = ($node.info.requires | Select-String -Pattern "nlohmann").Line
$nlohmann_path = conan cache path $nlohmann

$wide = ($node.info.requires | Select-String -Pattern "wide-integer").Line
$wide_path = conan cache path $wide

echo "nlohmann_path=$nlohmann_path" >> $env:GITHUB_OUTPUT
echo "wide_path=$wide_path" >> $env:GITHUB_OUTPUT


- name: Compress the package directory
run: Compress-Archive -Path "${{ steps.get-artifact.outputs.packagePath }}/*" -DestinationPath "${{ steps.get-artifact.outputs.packageLabel }}-windows.zip"
run: Compress-Archive -Path "${{ steps.get-artifact.outputs.wide_path }}/include", "${{ steps.get-artifact.outputs.nlohmann_path }}/include", "${{ steps.get-artifact.outputs.packagePath }}/*" -DestinationPath "${{ steps.get-artifact.outputs.packageLabel }}-windows.zip"
shell: pwsh

- name: Upload Release Asset
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.15)

project(substrate-cpp LANGUAGES CXX VERSION 1.0.0)
project(substrate-cpp LANGUAGES CXX VERSION 1.0.1)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Add this package to your project's `conanfile.txt`:

```ini
[requires]
libSubstrate/1.0.0@svnscha/dev
libSubstrate/1.0.1@svnscha/dev

[generators]
cmake
Expand Down
2 changes: 1 addition & 1 deletion conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class libSubstratePackage(ConanFile):

# Metadata
name = "substrate"
version = "1.0.0"
version = "1.0.1"
license = "GPL 3"
author = "svnscha"
description = "C++ client interface to Polkadot (Substrate)"
Expand Down
2 changes: 1 addition & 1 deletion test_package/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.15)

project(substrate_test_package LANGUAGES CXX VERSION 1.0.0)
project(substrate_test_package LANGUAGES CXX VERSION 1.0.1)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

Expand Down