]> git.proxmox.com Git - mirror_acme.sh.git/blob - .github/workflows/Windows.yml
81e646e526449d7779bf2139358fdfcb721d1265
[mirror_acme.sh.git] / .github / workflows / Windows.yml
1 name: Windows
2 on:
3 push:
4 branches:
5 - '*'
6 paths:
7 - '*.sh'
8 - '.github/workflows/Windows.yml'
9
10 pull_request:
11 branches:
12 - dev
13 paths:
14 - '*.sh'
15 - '.github/workflows/Windows.yml'
16
17
18 concurrency:
19 group: ${{ github.workflow }}-${{ github.ref }}
20 cancel-in-progress: true
21
22
23 jobs:
24 Windows:
25 strategy:
26 matrix:
27 include:
28 - TEST_ACME_Server: "LetsEncrypt.org_test"
29 CA_ECDSA: ""
30 CA: ""
31 CA_EMAIL: ""
32 TEST_PREFERRED_CHAIN: (STAGING) Pretend Pear X1
33 #- TEST_ACME_Server: "ZeroSSL.com"
34 # CA_ECDSA: "ZeroSSL ECC Domain Secure Site CA"
35 # CA: "ZeroSSL RSA Domain Secure Site CA"
36 # CA_EMAIL: "githubtest@acme.sh"
37 # TEST_PREFERRED_CHAIN: ""
38 runs-on: windows-latest
39 env:
40 TEST_ACME_Server: ${{ matrix.TEST_ACME_Server }}
41 CA_ECDSA: ${{ matrix.CA_ECDSA }}
42 CA: ${{ matrix.CA }}
43 CA_EMAIL: ${{ matrix.CA_EMAIL }}
44 TEST_LOCAL: 1
45 #The 80 port is used by Windows server, we have to use a custom port, tunnel will also use this port.
46 Le_HTTPPort: 8888
47 TEST_PREFERRED_CHAIN: ${{ matrix.TEST_PREFERRED_CHAIN }}
48 steps:
49 - name: Set git to use LF
50 run: |
51 git config --global core.autocrlf false
52 - uses: actions/checkout@v2
53 - name: Install cygwin base packages with chocolatey
54 run: |
55 choco config get cacheLocation
56 choco install --no-progress cygwin
57 shell: cmd
58 - name: Install cygwin additional packages
59 run: |
60 C:\tools\cygwin\cygwinsetup.exe -qgnNdO -R C:/tools/cygwin -s http://mirrors.kernel.org/sourceware/cygwin/ -P socat,curl,cron,unzip,git,xxd
61 shell: cmd
62 - name: Set ENV
63 shell: cmd
64 run: |
65 echo PATH=C:\tools\cygwin\bin;C:\tools\cygwin\usr\bin;%PATH% >> %GITHUB_ENV%
66 - name: Check ENV
67 shell: cmd
68 run: |
69 echo "PATH=%PATH%"
70 - name: Clone acmetest
71 shell: cmd
72 run: cd .. && git clone --depth=1 https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/
73 - name: Run acmetest
74 shell: cmd
75 run: cd ../acmetest && bash.exe -c ./letest.sh
76
77
78