You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
2.0 KiB

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