From c16d064efb4e4312c5a10dd4aaadfc8c1c95897c Mon Sep 17 00:00:00 2001 From: fri Date: Fri, 13 Sep 2024 07:31:43 +0200 Subject: [PATCH] Build package with man pages and shell integration --- .github/workflows/build.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 363d910..1479b27 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,6 +19,10 @@ jobs: runs-on: ${{ matrix.runner }} steps: - uses: actions/checkout@v4 + - name: Install asciidoctor + run: | + sudo apt update + sudo apt -y install asciidoctor - name: Build Linux run: | docker run --platform ${{ matrix.platform }} --rm -t \ @@ -26,9 +30,20 @@ jobs: -v "$(pwd)":/volume \ clux/muslrust:stable \ env CFLAGS=-Os cargo build --release --target ${{ matrix.target }} + - name: Build man pages + run: | + asciidoctor -b manpage doc/fcd.1.adoc + asciidoctor -b manpage doc/fcd-view.1.adoc + - name: Package + run: | + mkdir fcd + cp fcd.{sh,fish} fcd/ + cp doc/fcd{,-view}.1 fcd/ + cp target/${{ matrix.target }}/release/fcd fcd/ + tar cvzf fcd-${{ matrix.target }}.tar.gz fcd/ - name: Upload uses: actions/upload-artifact@v4 with: name: fcd-${{ matrix.target }} - path: target/${{ matrix.target }}/release/fcd + path: fcd-${{ matrix.target }}.tar.gz if-no-files-found: error