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

chore(ci): Delete bcrypt in windows

The dependency is downloaded in ubuntu, but copied to windows
so we need a explicit deletion
Zaiming Shi 5 лет назад
Родитель
Сommit
aa802d129c
1 измененных файлов с 4 добавлено и 2 удалено
  1. 4 2
      .github/workflows/build_packages.yaml

+ 4 - 2
.github/workflows/build_packages.yaml

@@ -77,7 +77,7 @@ jobs:
     - name: build
     - name: build
       env:
       env:
         PYTHON: python
         PYTHON: python
-        DIAGNOSTIC: 1 
+        DIAGNOSTIC: 1
       run: |
       run: |
         $env:PATH = "${{ steps.install_erlang.outputs.erlpath }}\bin;$env:PATH"
         $env:PATH = "${{ steps.install_erlang.outputs.erlpath }}\bin;$env:PATH"
 
 
@@ -89,8 +89,10 @@ jobs:
         else {
         else {
           $pkg_name = "${{ matrix.profile }}-windows-$($version -replace '/').zip"
           $pkg_name = "${{ matrix.profile }}-windows-$($version -replace '/').zip"
           }
           }
-
         cd source
         cd source
+        ## We do not build/release bcrypt for windows package
+        Remove-Item -Recurse -Force -Path _build/default/lib/bcrypt/
+        Remove-Item -Force -Path rebar.lock
         make ${{ matrix.profile }}
         make ${{ matrix.profile }}
         mkdir -p _packages/${{ matrix.profile }}
         mkdir -p _packages/${{ matrix.profile }}
         Compress-Archive -Path _build/${{ matrix.profile }}/rel/emqx -DestinationPath _build/${{ matrix.profile }}/rel/$pkg_name
         Compress-Archive -Path _build/${{ matrix.profile }}/rel/emqx -DestinationPath _build/${{ matrix.profile }}/rel/$pkg_name