From ed58b1957a938f0d18783ef69e136a7cc9fa4cbc Mon Sep 17 00:00:00 2001 From: Luca Corbatto Date: Wed, 16 Nov 2022 11:38:18 +0100 Subject: [PATCH] Extracts windows build and skips on pull_request --- .github/workflows/ci.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index be0995d..7b95b51 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -65,7 +65,7 @@ jobs: - name: Codecov uses: codecov/codecov-action@v3 - build: + build-linux: runs-on: ubuntu-latest needs: setup strategy: @@ -112,6 +112,18 @@ jobs: cicd/build/libcrypto.so* cicd/build/libyara.license + build-windows: + runs-on: ubuntu-latest + needs: setup + if: github.event_name != 'pull_request' # pull_request events don't have access to secrets + strategy: + matrix: + go-version: [ "1.18", "1.19" ] + yara-version: [ "v4.2.3" ] + openssl-version: [ "OpenSSL_1_1_1-stable" ] + steps: + - uses: actions/checkout@v3 + - name: Docker Login uses: docker/login-action@v2 with: @@ -138,7 +150,7 @@ jobs: release: runs-on: ubuntu-latest - needs: [ build, test ] + needs: [ build-linux, build-windows, test ] permissions: contents: write if: startsWith(github.ref, 'refs/tags/v')