-
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 #2 from tonyseek/release/0-1-0
Release 0.1.0
- Loading branch information
Showing
6 changed files
with
107 additions
and
3 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
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Changelog | ||
|
||
## 0.1.0 (2023-02-02) | ||
|
||
- The first release which uses a UDP socket on a loopback address. ([#1](https://github.com/tonyseek/trapit/pull/1)) |
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,8 +1,25 @@ | ||
cmake_minimum_required(VERSION 3.22..3.25) | ||
project(trapit) | ||
project(trapit VERSION 0.1.0) | ||
|
||
set(CMAKE_CXX_STANDARD 17) | ||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON) | ||
|
||
add_executable(trapit trapit.cc) | ||
target_compile_definitions( | ||
trapit PRIVATE TRAPIT_VERSION="${CMAKE_PROJECT_VERSION}") | ||
install(TARGETS trapit) | ||
|
||
set(CPACK_PACKAGE_VENDOR "Jiangge Zhang <tonyseek@gmail.com>") | ||
set(CPACK_PACKAGE_CONTACT "Jiangge Zhang <tonyseek@gmail.com>") | ||
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
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