File tree 3 files changed +24
-2
lines changed
3 files changed +24
-2
lines changed Original file line number Diff line number Diff line change 1
1
name : Setup Caddy server
2
+ inputs :
3
+ arch :
4
+ default : ' LINUX_X64'
5
+ required : true
6
+ description : " Set LINUX_X64 or WINDOWS (which are job names of the push.yml workflows)"
2
7
runs :
3
8
using : composite
4
9
steps :
5
10
- shell : bash
11
+ if : inputs.arch == 'LINUX_X64'
6
12
env :
7
13
GH_TOKEN : ${{ github.token }}
8
14
run : |
11
17
sudo chmod +x /usr/bin/caddy
12
18
sudo caddy start --config ext/curl/tests/Caddyfile
13
19
continue-on-error : true
20
+ - shell : pwsh
21
+ if : inputs.arch == 'WINDOWS'
22
+ env :
23
+ GH_TOKEN : ${{ github.token }}
24
+ run : |
25
+ gh release -R caddyserver/caddy download --pattern 'caddy_*_windows_amd64.zip' --output caddy.zip
26
+ Expand-Archive -Path caddy.zip -DestinationPath ./build/caddy -Force
27
+ ./build/caddy/caddy.exe trust
28
+ ./build/caddy/caddy.exe start --config ext/curl/tests/Caddyfile
29
+ continue-on-error : true
Original file line number Diff line number Diff line change 98
98
uses : ./.github/actions/setup-mssql
99
99
- name : Setup Caddy server
100
100
uses : ./.github/actions/setup-caddy
101
+ with :
102
+ arch : LINUX_X64
101
103
- name : ccache
102
104
uses :
hendrikmuhs/[email protected]
103
105
with :
@@ -254,6 +256,10 @@ jobs:
254
256
run : git config --global core.autocrlf false && git config --global core.eol lf
255
257
- name : git checkout
256
258
uses : actions/checkout@v4
259
+ - name : Setup Caddy server
260
+ uses : ./.github/actions/setup-caddy
261
+ with :
262
+ arch : WINDOWS
257
263
- name : Setup
258
264
uses : ./.github/actions/setup-windows
259
265
- name : Build
Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ respond /serverpush/pushed "pushed response"
13
13
push /serverpush /serverpush/pushed
14
14
15
15
route /show_upload_size {
16
- templates
17
- respond `Content-length: ={{.Req.Header.Get "Content-length"}}=`
16
+ templates
17
+ respond `Content-length: ={{.Req.Header.Get "Content-length"}}=`
18
18
}
19
19
20
20
basic_auth /http-basic-auth {
You can’t perform that action at this time.
0 commit comments