forked from capstone-engine/capstone
-
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.
Make debian package generation dispatch only
- Loading branch information
Showing
3 changed files
with
32 additions
and
23 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Build Debian Package | ||
|
||
on: workflow_dispatch | ||
|
||
jobs: | ||
build: | ||
name: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
|
||
- name: Build Debian Package | ||
working-directory: ./packages/deb | ||
run: ./setup.sh "$(git describe --tags --abbrev=0)" | ||
|
||
- name: Run sanity checks on the Debian package | ||
working-directory: ./packages/deb | ||
run: | | ||
./check_capstone.sh ./libcapstone-dev.deb "$(git describe --tags --abbrev=0)" | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
path: ./packages/deb/libcapstone-dev.deb |
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,7 @@ | ||
Incomplete Debian package implementation. | ||
It can be used to generate an easily installable Capstone, but misses a lot of | ||
mandatory things to add it in the Debian repos (`debian/control` is incomplete, no dependencies added etc.). | ||
|
||
You can build the package by dispatching the `Build Debian Package` workflow or executing the commands in the `Dockerfile`. | ||
It assumes the current commit is tagged and `"$(git describe --tags --abbrev=0)"` returns a valid version number. | ||
The package is uploaded as artifact. |