-
Notifications
You must be signed in to change notification settings - Fork 196
168 lines (163 loc) · 4.68 KB
/
wikidocs.yml
File metadata and controls
168 lines (163 loc) · 4.68 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
# Build Wiki Documentation
#
# set secret OWGHTOKEN - https 'user name:password'
name: WikiDocs
on:
push:
branches:
- master
paths:
- '.github/workflows/wikidocs.yml'
- '.github/actions/artfdelc/action.yml'
- '.github/actions/artfload/action.yml'
- '.github/actions/artfsave/action.yml'
- '.github/actions/boot/action.yml'
- '.github/actions/dosboxin/action.yml'
- '.github/actions/docbuild/action.yml'
- '.github/actions/curlcmd/action.yml'
- '.github/actions/tarload/action.yml'
- '.github/actions/tarsave/action.yml'
- 'docs/**'
- 'bld/cc/gml/**'
- 'bld/cg/doc/**'
- 'bld/docstxt/**'
- 'bld/dwarf/dw/doc/**'
- 'bld/f77/wfc/gml/**'
- 'bld/plusplus/gml/**'
- 'bld/wpi/doc/**'
- 'bld/wv/doc/**'
workflow_dispatch:
concurrency:
group: ${{github.workflow}}-${{github.ref}}
cancel-in-progress: true
env:
OWDEBUG: "${{vars.DEBUG}}"
OWTESTMODE: "${{vars.TESTMODE}}"
OWCURLOPTS: "${{vars.CURLOPTS}}"
OWUSETARARCHIVE: '0'
jobs:
start-start:
if: github.repository == 'open-watcom/open-watcom-v2' || github.repository == vars.REPO
name: Check if to run
runs-on: ubuntu-latest
steps:
- run: echo ""
shell: bash
wiki-boot:
needs: start-start
name: Bootstrap
runs-on: windows-2022
steps:
- name: Set EOL to LF
run: |
git config --global core.eol lf
git config --global core.autocrlf input
- name: checkout
uses: actions/checkout@v6
- name: Bootstrap
uses: ./.github/actions/boot
with:
args: 'vs2022'
suffix: 'nt x64 vs2022'
owtools: 'VISUALC'
env:
OWDOCTARGET: 'bootdocs'
# run: git config --local --list
wiki-build:
needs: wiki-boot
runs-on: windows-2022
strategy:
matrix:
include:
- title: 'HTML'
doctype: 'wikihtml'
owtarget: '.and wikihtml .or -- -- docset=wikihtml -i'
gitpath: 'docs wiki'
- title: 'PDF'
doctype: 'wikipdf'
owtarget: '.and wikipdf .or -- -- docset=wikipdf -i'
gitpath: 'docs wiki'
- title: 'Readme'
doctype: 'readme'
gitpath: 'bld docstxt wiki'
name: Build ${{matrix.title}}
steps:
- name: Set EOL to LF
run: |
git config --global core.eol lf
git config --global core.autocrlf input
- name: checkout
uses: actions/checkout@v6
- name: Install DOSBOX
uses: ./.github/actions/dosboxin
- name: Build
uses: ./.github/actions/docbuild
with:
args: 'vs2022'
target: ${{matrix.doctype}}
gitpath: ${{matrix.gitpath}}
suffix: 'nt x64 vs2022'
doc_suffix: ${{matrix.doctype}} vs2022
owtools: 'VISUALC'
owtarget: ${{matrix.owtarget}}
# run: git config --local --list
wiki-update:
name: Update Wiki
needs: wiki-build
runs-on: windows-2022
steps:
- name: Set EOL to LF
run: |
git config --global core.eol lf
git config --global core.autocrlf input
- name: Setup Git User
run: |
git config --global user.email "openwatcom.github@gmail.com"
git config --global user.name "Open Watcom GitHub"
shell: cmd
- name: Wiki Repo clone
run: |
git clone -v --depth=1 --branch=master https://%OWGHTOKEN%@github.com/%OWWIKIPROJ%.git .
env:
OWGHTOKEN: ${{secrets.OWGHTOKEN}}
OWWIKIPROJ: open-watcom/open-watcom-v2-wikidocs
shell: cmd
- if: env.OWTESTMODE != '1'
name: Download Artifact html
uses: actions/download-artifact@v8
with:
name: 'rel-wikihtml-vs2022'
path: docs
- if: env.OWTESTMODE != '1'
name: Download Artifact pdf
uses: actions/download-artifact@v8
with:
name: 'rel-wikipdf-vs2022'
path: docs
- if: env.OWTESTMODE != '1'
name: Download Artifact readme
uses: actions/download-artifact@v8
with:
name: 'rel-readme-vs2022'
path: docs
- name: Wiki Repo Update
run: |
if '${{github.repository}}' == 'open-watcom/open-watcom-v2' (
if not '${{env.OWTESTMODE}}' == '1' (
git add -v -f .
git commit -v -m "GitHub Workflow build"
git push -v
)
)
shell: cmd
# run: git config --list
cleanup:
needs: wiki-update
name: Call to delete Artifacts
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v6
- if: vars.DELETEARTIFACTS == '1'
name: Call to delete Artifacts
uses: ./.github/actions/artfdelc