-
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.
- Loading branch information
Showing
4 changed files
with
84 additions
and
1 deletion.
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
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Build | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- "master" | ||
tags: | ||
- "v*" | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/cache@v3 | ||
with: | ||
path: | | ||
/var/lib/apt/lists | ||
/var/cache/apt/archives/**.deb | ||
!/var/lib/apt/lists/partial | ||
!/var/lib/apt/lists/lock | ||
!/var/cache/apt/archives/partial | ||
!/var/cache/apt/archives/lock | ||
key: ${{ runner.os }}-apt-v1 | ||
- uses: lukka/get-cmake@latest | ||
- name: Setup APT packages | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y --no-install-recommends rpm | ||
- name: Build release | ||
run: ./build.sh pack | ||
- name: Upload to GitHub artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: dist | ||
path: "build/dist/" | ||
- name: Upload to GitHub release | ||
uses: xresloader/upload-to-github-release@v1 | ||
with: | ||
file: "build/dist/*" | ||
tags: true | ||
draft: true | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
|
@@ -6,3 +6,18 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON) | |
|
||
add_executable(trapit trapit.cc) | ||
install(TARGETS trapit) | ||
|
||
set(CPACK_PACKAGE_VENDOR "Jiangge Zhang <[email protected]>") | ||
set(CPACK_PACKAGE_CONTACT "Jiangge Zhang <[email protected]>") | ||
set(CPACK_PACKAGE_DIRECTORY "${CMAKE_BINARY_DIR}/dist") | ||
set( | ||
CPACK_PACKAGE_DESCRIPTION_SUMMARY "Command line utility that traps \ | ||
short-lived processes to inspect them with PID-aware tools (e.g. strace)") | ||
set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_SOURCE_DIR}/README.md") | ||
set(CPACK_PACKAGE_HOMEPAGE_URL "https://github.com/tonyseek/trapit") | ||
set(CPACK_STRIP_FILES TRUE) | ||
set( | ||
CPACK_SOURCE_IGNORE_FILES | ||
"\\\\.git/" "\\\\.github/" "\\\\.sw[op]$" "/build/") | ||
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libc6 (>= 2.2.5)") | ||
include(CPack) |
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