File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed
Expand file tree Collapse file tree 2 files changed +21
-0
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 . -Force
27+ ./caddy.exe start --config ext/curl/tests/Caddyfile
28+ 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
You can’t perform that action at this time.
0 commit comments