Skip to content

Build man page as part of workflows #157

Build man page as part of workflows

Build man page as part of workflows #157

Workflow file for this run

name: build
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macOS-latest]
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --release --verbose
- name: Run tests
run: cargo test --verbose
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: git-absorb-${{ matrix.os }}
path: |
target/release/git-absorb
target/release/git-absorb.exe
build-man-page:
name: build-man-page
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup environment
run: |
sudo apt-get update
sudo apt-get --assume-yes install asciidoc
- name: Build from asciidoc
run: |
a2x --no-xmllint --doctype manpage --format manpage Documentation/git-absorb.txt
- name: Upload man page as artifact
uses: actions/upload-artifact@v4
with:
path: Documentation/git-absorb.1
name: git-absorb.1