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.

78 lines
2.2 KiB

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