Browse Source

bette compilation

sabban 2 years ago
parent
commit
10ed2b8680
1 changed files with 2 additions and 2 deletions
  1. 2 2
      .github/workflows/tmp.yaml

+ 2 - 2
.github/workflows/tmp.yaml

@@ -21,8 +21,8 @@ jobs:
     - run: go version
     - run: go version
     - name: run tests on last crowdsec tag
     - name: run tests on last crowdsec tag
       run: |
       run: |
-        sudo apt-get install -y make
-        make && cp cmd/crowdsec/crowdsec /usr/local/bin && cp cmd/crowdsec-cli/cscli /usr/local/bin
+        sudo apt-get install -y make libre2-dev
+        make CGO_ENABLED=1 BUILD_RE_WASM=0 BUILD_STATIC=1 && cp cmd/crowdsec/crowdsec /usr/local/bin && cp cmd/crowdsec-cli/cscli /usr/local/bin
         sudo mkdir -p /etc/crowdsec && sudo cp -a config/* /etc/crowdsec
         sudo mkdir -p /etc/crowdsec && sudo cp -a config/* /etc/crowdsec
         cd hub
         cd hub
         cscli hubtest run modsecurity --debug || cat .tests/modsecurity/results/bucket-dump.yaml
         cscli hubtest run modsecurity --debug || cat .tests/modsecurity/results/bucket-dump.yaml