summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/linux.yml9
-rw-r--r--Makefile2
-rw-r--r--description-pak1
3 files changed, 10 insertions, 2 deletions
diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml
index 0790f65..1e4f934 100644
--- a/.github/workflows/linux.yml
+++ b/.github/workflows/linux.yml
@@ -65,7 +65,7 @@ jobs:
runs-on: amd64-debian-bookworm
steps:
- name: apt install
- run: apt update && apt install -y pkg-config m4 libtool automake autoconf bison
+ run: apt update && apt install -y pkg-config m4 libtool automake autoconf bison checkinstall
- name: Checkout repository code
uses: actions/checkout@v3
- name: Download cached build artifacts
@@ -384,10 +384,15 @@ jobs:
- name: Rename and compress libwallet2_api_c.so
run: |
cd ${{ github.workspace }}/libbridge/build/ \
- && mv libwallet2_api_c.so ${{ matrix.host_triplet }}_libwallet2_api_c.so \
+ && cp libwallet2_api_c.so ${{ matrix.host_triplet }}_libwallet2_api_c.so \
&& sha256sum ${{ matrix.host_triplet }}_libwallet2_api_c.so > ${{ matrix.host_triplet }}_libwallet2_api_c.so.sha256 \
&& xz -e ${{ matrix.host_triplet }}_libwallet2_api_c.so \
&& sha256sum ${{ matrix.host_triplet }}_libwallet2_api_c.so.xz > ${{ matrix.host_triplet }}_libwallet2_api_c.so.xz.sha256
+ - name: Publish .deb
+ run: |
+ cd ${{ github.workspace }} \
+ && checkinstall --type=debian --pkgname="libwallet2-api-c" --pkgversion="$(git describe --tags | sed 's/v//')" --nodoc --strip=no --stripso=no --maintainer=cyjan@mrcyjanek.net --install=no -y \
+ && curl --user mrcyjanek:$PAT_SECRET_PACKAGE --upload-file libwallet2-api-c*.deb https://git.mrcyjanek.net/api/packages/mrcyjanek/debian/pool/no-distro/main/upload
# - name: act - copy workspace to /opt/wspace
# if: ${{ env.ACT }}
# run: cp -a ${{ github.workspace }} /opt/wspace
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..fc98c16
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,2 @@
+install:
+ cp libbridge/build/libwallet2_api_c.so /usr/local/lib/libwallet2_api_c.so \ No newline at end of file
diff --git a/description-pak b/description-pak
new file mode 100644
index 0000000..98fe172
--- /dev/null
+++ b/description-pak
@@ -0,0 +1 @@
+provides libwallet2_api_c.so \ No newline at end of file