-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RS-273: Refactor CI actions and add build for Windows (#73)
* refactor ci build and add windows * update CHANGELOG
- Loading branch information
Showing
6 changed files
with
37 additions
and
73 deletions.
There are no files selected for viewing
17 changes: 8 additions & 9 deletions
17
.github/actions/check-package/action.yml → .github/actions/build-package/action.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,24 @@ | ||
name: "check-package" | ||
name: "build-package" | ||
description: "Install package and build example" | ||
inputs: | ||
install: | ||
default: "true" | ||
description: "Install the package after build" | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Build package | ||
shell: bash | ||
run: cmake -DCMAKE_BUILD_TYPE=Release -DREDUCT_CPP_ENABLE_EXAMPLES=ON -S . -B build | ||
run: cmake -DCMAKE_BUILD_TYPE=Debug -DREDUCT_CPP_ENABLE_EXAMPLES=ON -DREDUCT_CPP_ENABLE_TESTS=ON -S . -B build | ||
- name: Install package | ||
if: ${{inputs.install == 'true' }} | ||
shell: bash | ||
run: sudo cmake --build build --target install | ||
- name: Build example | ||
if: ${{inputs.install == 'true' }} | ||
shell: bash | ||
run: | | ||
mkdir examples/build | ||
cd examples/build | ||
cmake .. | ||
cmake --build . | ||
- name: Run examples | ||
shell: bash | ||
run: | | ||
docker run -p 8383:8383 -d reduct/store:main | ||
sleep 3 | ||
cd examples/build | ||
./usage-example |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters