File tree 4 files changed +42
-18
lines changed
4 files changed +42
-18
lines changed Original file line number Diff line number Diff line change @@ -23,14 +23,14 @@ jobs:
23
23
matrix :
24
24
build :
25
25
- linux
26
- # - windows
26
+ - windows
27
27
include :
28
28
- build : linux
29
29
os : ubuntu-20.04
30
30
config : gnu
31
- # - build: windows
32
- # os: windows-2019
33
- # config: cl
31
+ - build : windows
32
+ os : windows-2019
33
+ config : cl
34
34
35
35
steps :
36
36
- name : Checkout repository
60
60
- jammy
61
61
- noble
62
62
- macos-universal
63
- # - windows
63
+ - windows
64
64
include :
65
65
- build : focal
66
66
os : ubuntu-20.04
@@ -78,10 +78,10 @@ jobs:
78
78
os : macos-latest
79
79
config : gnu
80
80
pkgfile : bazel-compile-commands_${{ github.event.inputs.version || 0 }}-macos_universal.zip
81
- # - build: windows
82
- # os: windows-2019
83
- # config: cl
84
- # pkgfile: bazel-compile-commands_${{ github.event.inputs.version || 0 }}-windows_amd64.zip
81
+ - build : windows
82
+ os : windows-2019
83
+ config : cl
84
+ pkgfile : bazel-compile-commands_${{ github.event.inputs.version || 0 }}-windows_amd64.zip
85
85
86
86
steps :
87
87
- name : Checkout repository
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ filegroup(
34
34
srcs = select ({
35
35
"@platforms//os:linux" : ["@pandoc_linux_x86_64//:pandoc" ],
36
36
"@platforms//os:macos" : [":pandoc_macos" ],
37
- "@platforms//os:windows" : ["@pandoc_windowss_x86_64 //:pandoc" ],
37
+ "@platforms//os:windows" : ["@pandoc_windows_x86_64 //:pandoc" ],
38
38
}),
39
39
)
40
40
@@ -46,6 +46,14 @@ genrule(
46
46
tools = [":pandoc" ],
47
47
)
48
48
49
+ genrule (
50
+ name = "html" ,
51
+ srcs = ["documentation.md" ],
52
+ outs = ["bazel-compile-commands.html" ],
53
+ cmd = "$(location :pandoc) -f markdown -t html -o $@ $(location documentation.md)" ,
54
+ tools = [":pandoc" ],
55
+ )
56
+
49
57
pkg_files (
50
58
name = "bin_files" ,
51
59
srcs = [
@@ -61,15 +69,29 @@ pkg_files(
61
69
prefix = "share/man/man1" ,
62
70
)
63
71
72
+ pkg_files (
73
+ name = "doc_files" ,
74
+ srcs = [":html" ],
75
+ prefix = "share/doc" ,
76
+ )
77
+
64
78
pkg_filegroup (
65
79
name = "usr_files" ,
66
80
srcs = [
67
81
":bin_files" ,
68
- ":man_files" ,
69
- ],
82
+ ] + select ({
83
+ "@platforms//os:windows" : [":doc_files" ],
84
+ "//conditions:default" : [":man_files" ],
85
+ }),
70
86
prefix = "/usr" ,
71
87
)
72
88
89
+ pkg_tar (
90
+ name = "tar" ,
91
+ srcs = [":usr_files" ],
92
+ extension = "tar.gz" ,
93
+ )
94
+
73
95
pkg_deb (
74
96
name = "deb" ,
75
97
architecture = select ({
@@ -87,11 +109,6 @@ pkg_deb(
87
109
version_file = "@//:version_file" ,
88
110
)
89
111
90
- pkg_tar (
91
- name = "tar" ,
92
- srcs = [":usr_files" ],
93
- )
94
-
95
112
pkg_zip (
96
113
name = "zip" ,
97
114
srcs = [":usr_files" ],
Original file line number Diff line number Diff line change @@ -80,5 +80,5 @@ http_archive(
80
80
urls = ["https://github.com/jgm/pandoc/releases/download/3.6/pandoc-3.6-windows-x86_64.zip" ],
81
81
integrity = "sha256-BnMre5bTuZ9xG6G/JPKJ/LW8lWEZK9wb2VFMF8iqLCA=" ,
82
82
strip_prefix = "pandoc-3.6" ,
83
- build_file = "//bazel:pandoc.BUILD" ,
83
+ build_file = "//bazel:pandoc-windows .BUILD" ,
84
84
)
Original file line number Diff line number Diff line change
1
+ filegroup(
2
+ name = "pandoc",
3
+ srcs = [
4
+ "pandoc.exe",
5
+ ],
6
+ visibility = ["//visibility:public"],
7
+ )
You can’t perform that action at this time.
0 commit comments