File tree Expand file tree Collapse file tree 3 files changed +24
-2
lines changed
Expand file tree Collapse file tree 3 files changed +24
-2
lines changed Original file line number Diff line number Diff line change 11name : 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)"
27runs :
38 using : composite
49 steps :
510 - shell : bash
11+ if : inputs.arch == 'LINUX_X64'
612 env :
713 GH_TOKEN : ${{ github.token }}
814 run : |
1117 sudo chmod +x /usr/bin/caddy
1218 sudo caddy start --config ext/curl/tests/Caddyfile
1319 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 9898 uses : ./.github/actions/setup-mssql
9999 - name : Setup Caddy server
100100 uses : ./.github/actions/setup-caddy
101+ with :
102+ arch : LINUX_X64
101103 - name : ccache
102104 uses :
hendrikmuhs/[email protected] 103105 with :
@@ -254,6 +256,10 @@ jobs:
254256 run : git config --global core.autocrlf false && git config --global core.eol lf
255257 - name : git checkout
256258 uses : actions/checkout@v4
259+ - name : Setup Caddy server
260+ uses : ./.github/actions/setup-caddy
261+ with :
262+ arch : WINDOWS
257263 - name : Setup
258264 uses : ./.github/actions/setup-windows
259265 - name : Build
Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ respond /serverpush/pushed "pushed response"
1313push /serverpush /serverpush/pushed
1414
1515route /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"}}=`
1818}
1919
2020basic_auth /http-basic-auth {
You can’t perform that action at this time.
0 commit comments