Skip to content

Commit

Permalink
Build package with man pages and shell integration
Browse files Browse the repository at this point in the history
  • Loading branch information
fri committed Sep 13, 2024
1 parent f65aaab commit c16d064
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,31 @@ 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 \
-v $HOME/.cargo/registry/:/root/.cargo/registry \
-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

0 comments on commit c16d064

Please sign in to comment.