File tree 12 files changed +1620
-542
lines changed
12 files changed +1620
-542
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,17 @@ commands:
36
36
- ~/Library/Caches/Homebrew
37
37
38
38
jobs :
39
+ build-manpages :
40
+ docker :
41
+ - image : asciidoctor/docker-asciidoctor
42
+ steps :
43
+ - checkout
44
+ - run :
45
+ name : Build manpages
46
+ command : make manpages
47
+ - store_artifacts :
48
+ path : man
49
+
39
50
test :
40
51
docker :
41
52
- image : crystallang/crystal:latest
@@ -63,6 +74,7 @@ workflows:
63
74
version : 2
64
75
ci :
65
76
jobs :
77
+ - build-manpages
66
78
- test
67
79
- test-on-osx
68
80
- test-on-nightly
Original file line number Diff line number Diff line change 42
42
43
43
- name : Check formatting
44
44
run : crystal tool format --check src spec
45
+
46
+ docs :
47
+ runs-on : ubuntu-latest
48
+ steps :
49
+ - name : Download source
50
+ uses : actions/checkout@v2
51
+ - name : Build manpages
52
+ uses : Analog-inc/asciidoctor-action@master
53
+ with :
54
+ shellcommand : " make manpages"
Original file line number Diff line number Diff line change 7
7
/spec /.shards
8
8
/spec /unit /.lib
9
9
/tmp
10
+ /docs /* .html
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ SOURCES = $(SHARDS_SOURCES) $(MOLINILLO_SOURCES)
14
14
TEMPLATES = src/templates/*.ecr
15
15
16
16
SHARDS_CONFIG_BUILD_COMMIT := $(shell git rev-parse --short HEAD 2> /dev/null)
17
+ SHARDS_VERSION := $(shell cat VERSION)
17
18
SOURCE_DATE_EPOCH := $(shell (git show -s --format=% ct HEAD || stat -c "% Y" Makefile || stat -f "% m" Makefile) 2> /dev/null)
18
19
EXPORTS := SHARDS_CONFIG_BUILD_COMMIT="$(SHARDS_CONFIG_BUILD_COMMIT ) " SOURCE_DATE_EPOCH="$(SOURCE_DATE_EPOCH ) "
19
20
DESTDIR ?=
@@ -27,14 +28,16 @@ MOLINILLO_URL = "https://github.com/crystal-lang/crystal-molinillo/archive/v$(MO
27
28
28
29
all : bin/shards
29
30
30
- clean : phony
31
+ include docs.mk
32
+
33
+ clean : phony clean_docs
31
34
rm -f bin/shards
32
35
33
36
bin/shards : $(SOURCES ) $(TEMPLATES ) lib
34
37
@mkdir -p bin
35
38
$(EXPORTS ) $(CRYSTAL ) build $(FLAGS ) src/shards.cr -o bin/shards
36
39
37
- install : bin/shards phony
40
+ install : bin/shards manpages phony
38
41
$(INSTALL ) -m 0755 -d " $( BINDIR) " " $( MANDIR) /man1" " $( MANDIR) /man5"
39
42
$(INSTALL ) -m 0755 bin/shards " $( BINDIR) "
40
43
$(INSTALL ) -m 0644 man/shards.1 " $( MANDIR) /man1"
Original file line number Diff line number Diff line change @@ -75,6 +75,10 @@ These requirements are only for compiling Shards.
75
75
variable (eg : ` export LIBRARY_PATH="/usr/local/lib:$LIBRARY_PATH"` ).
76
76
Please adjust the path per your Homebrew installation.
77
77
78
+ * [asciidoctor](https://asciidoctor.org/)
79
+
80
+ Needed for building manpages.
81
+
78
82
79
83
# # License
80
84
You can’t perform that action at this time.
0 commit comments