mirror of
https://github.com/ouch-org/ouch.git
synced 2025-06-06 11:35:45 +00:00
generate completions and man page in ci
This commit is contained in:
parent
7efac2e55d
commit
bce6ae2797
20
.github/workflows/build.yml
vendored
20
.github/workflows/build.yml
vendored
@ -104,13 +104,15 @@ jobs:
|
||||
- name: Install dependencies for musl libc
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install musl-tools
|
||||
sudo apt-get install help2man musl-tools
|
||||
|
||||
- name: Run cargo build
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: build
|
||||
args: --release --target x86_64-unknown-linux-musl
|
||||
env:
|
||||
GEN_COMPLETIONS: 1
|
||||
|
||||
- name: Run cargo test
|
||||
uses: actions-rs/cargo@v1
|
||||
@ -118,6 +120,11 @@ jobs:
|
||||
command: test
|
||||
args: --target x86_64-unknown-linux-musl
|
||||
|
||||
- name: Build man page and find completions
|
||||
run: |
|
||||
help2man target/x86_64-unknown-linux-musl/release/ouch > ouch.1
|
||||
cp -r target/x86_64-unknown-linux-musl/release/build/ouch-*/out/completions .
|
||||
|
||||
- name: Strip binary
|
||||
run: strip target/x86_64-unknown-linux-musl/release/ouch
|
||||
|
||||
@ -127,6 +134,17 @@ jobs:
|
||||
name: 'ouch-x86_64-linux-musl'
|
||||
path: target/x86_64-unknown-linux-musl/release/ouch
|
||||
|
||||
- name: Upload completions
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: completions
|
||||
path: completions
|
||||
|
||||
- name: Upload man page
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: ouch.1
|
||||
path: ouch.1
|
||||
|
||||
x86_64_glibc:
|
||||
name: Ubuntu 20.04 (glibc)
|
||||
|
Loading…
x
Reference in New Issue
Block a user