File tree 2 files changed +21
-0
lines changed
2 files changed +21
-0
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 . -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 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
You can’t perform that action at this time.
0 commit comments