-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60 from ihsrobotics/debian
Debian
- Loading branch information
Showing
2 changed files
with
25 additions
and
6 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -55,16 +55,19 @@ jobs: | |
# Configure ihsboost CMake in 'build' subdirectory. | ||
run: | ||
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \ | ||
-Dwith_documentation=OFF -Dpython_version=3.10 -Dbuild_tests=ON \ | ||
-Dwith_documentation=OFF -Dpython_version=3.10 -Dbuild_tests=ON -Dbuild_debian=ON \ | ||
-G "Ninja" | ||
|
||
- name: Build | ||
# Build your program with the given configuration | ||
id: build | ||
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} | ||
|
||
- name: Package Debian | ||
run: cd ${{github.workspace}}/build && cpack && cd ${{github.workspace}} | ||
|
||
- name: install | ||
run: sudo cmake --install ${{github.workspace}}/build && sudo ldconfig | ||
run: sudo dpkg --install ${{github.workspace}}/build/ihs_boost-*.deb && sudo ldconfig | ||
|
||
- name: update-build-status | ||
uses: myrotvorets/[email protected] | ||
|
@@ -88,11 +91,11 @@ jobs: | |
context: test-status | ||
|
||
# ========== Exit ========== | ||
- name: Upload Artifacts | ||
- name: Upload Debian Artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: Artifacts | ||
path: ${{github.workspace}}/build | ||
name: x86_64-linux deb package | ||
path: ${{github.workspace}}/build/ihs_boost-*.deb | ||
|
||
# ========== Failure Section ========== | ||
# if build fails, set it to failed | ||
|
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