-
Notifications
You must be signed in to change notification settings - Fork 77
51 lines (46 loc) · 1.23 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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
check-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check format
run: cargo fmt --check
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 --no-install-recommends install asciidoc
- name: Build from asciidoc
working-directory: ./Documentation
run: make
- name: Upload man page as artifact
uses: actions/upload-artifact@v4
with:
path: Documentation/git-absorb.1
name: git-absorb.1