Просмотр исходного кода

Merge pull request #11994 from zmstone/1121-remove-windows-from-ci

ci: remove windows from CI
Zaiming (Stone) Shi 2 лет назад
Родитель
Сommit
261f9190c2

+ 0 - 4
.github/ISSUE_TEMPLATE/bug-report.yaml

@@ -61,10 +61,6 @@ body:
         # paste output here
         # paste output here
         $ uname -a
         $ uname -a
         # paste output here
         # paste output here
-
-        # On Windows:
-        C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
-        # paste output here
         ```
         ```
 
 
         </details>
         </details>

+ 0 - 52
.github/workflows/build_packages.yaml

@@ -65,58 +65,6 @@ on:
         default: '5.2-3'
         default: '5.2-3'
 
 
 jobs:
 jobs:
-  windows:
-    runs-on: windows-2019
-    if: inputs.profile == 'emqx'
-    strategy:
-      fail-fast: false
-      matrix:
-        profile: # for now only CE for windows
-          - emqx
-    steps:
-    - uses: actions/checkout@v3
-      with:
-        ref: ${{ github.event.inputs.ref }}
-        fetch-depth: 0
-
-    - uses: ilammy/msvc-dev-cmd@v1.12.0
-    - uses: erlef/setup-beam@v1.16.0
-      with:
-        otp-version: 25.3.2
-    - name: build
-      env:
-        PYTHON: python
-        DIAGNOSTIC: 1
-      run: |
-        # ensure crypto app (openssl)
-        erl -eval "erlang:display(crypto:info_lib())" -s init stop
-        make ${{ matrix.profile }}-tgz
-    - name: run emqx
-      timeout-minutes: 5
-      run: |
-        $ErrorActionPreference = "Stop"
-        ./_build/${{ matrix.profile }}/rel/emqx/bin/emqx start
-        Start-Sleep -s 10
-        $pingOutput = ./_build/${{ matrix.profile }}/rel/emqx/bin/emqx ping
-        if ($pingOutput = 'pong') {
-          echo "EMQX started OK"
-        } else {
-          echo "Failed to ping EMQX $pingOutput"
-          Exit 1
-        }
-        ./_build/${{ matrix.profile }}/rel/emqx/bin/emqx stop
-        echo "EMQX stopped"
-        ./_build/${{ matrix.profile }}/rel/emqx/bin/emqx install
-        echo "EMQX installed"
-        ./_build/${{ matrix.profile }}/rel/emqx/bin/emqx uninstall
-        echo "EMQX uninstalled"
-    - uses: actions/upload-artifact@v3
-      if: success()
-      with:
-        name: ${{ matrix.profile }}
-        path: _packages/${{ matrix.profile }}/
-        retention-days: 7
-
   mac:
   mac:
     strategy:
     strategy:
       fail-fast: false
       fail-fast: false

+ 0 - 56
.github/workflows/build_packages_cron.yaml

@@ -130,59 +130,3 @@ jobs:
         with:
         with:
           payload: |
           payload: |
             {"text": "Scheduled build of ${{ matrix.profile }} package for ${{ matrix.os }} failed: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"}
             {"text": "Scheduled build of ${{ matrix.profile }} package for ${{ matrix.os }} failed: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"}
-
-  windows:
-    if: github.repository_owner == 'emqx'
-    runs-on: windows-2019
-    strategy:
-      fail-fast: false
-      matrix:
-        profile:
-          - emqx
-        otp:
-          - 25.3.2
-    steps:
-      - uses: actions/checkout@v3
-      - uses: ilammy/msvc-dev-cmd@v1.12.0
-      - uses: erlef/setup-beam@v1.16.0
-        with:
-          otp-version: ${{ matrix.otp }}
-      - name: build
-        env:
-          PYTHON: python
-          DIAGNOSTIC: 1
-        run: |
-          # ensure crypto app (openssl)
-          erl -eval "erlang:display(crypto:info_lib())" -s init stop
-          make ${{ matrix.profile }}-tgz
-      - name: run emqx
-        timeout-minutes: 5
-        run: |
-          ./_build/${{ matrix.profile }}/rel/emqx/bin/emqx start
-          Start-Sleep -s 10
-          $pingOutput = ./_build/${{ matrix.profile }}/rel/emqx/bin/emqx ping
-          if ($pingOutput = 'pong') {
-            echo "EMQX started OK"
-          } else {
-            echo "Failed to ping EMQX $pingOutput"
-            Exit 1
-          }
-          ./_build/${{ matrix.profile }}/rel/emqx/bin/emqx stop
-          echo "EMQX stopped"
-          ./_build/${{ matrix.profile }}/rel/emqx/bin/emqx install
-          echo "EMQX installed"
-          ./_build/${{ matrix.profile }}/rel/emqx/bin/emqx uninstall
-          echo "EMQX uninstalled"
-      - uses: actions/upload-artifact@v3
-        with:
-          name: windows
-          path: _packages/${{ matrix.profile }}/*
-          retention-days: 7
-      - name: Send notification to Slack
-        uses: slackapi/slack-github-action@v1.23.0
-        if: failure()
-        env:
-          SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
-        with:
-          payload: |
-            {"text": "Scheduled build of ${{ matrix.profile }} package for Windows failed: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"}