Skip to content

Commit

Permalink
Extracts windows build and skips on pull_request
Browse files Browse the repository at this point in the history
  • Loading branch information
targodan committed Nov 16, 2022
1 parent 1c3af55 commit ed58b19
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
- name: Codecov
uses: codecov/codecov-action@v3

build:
build-linux:
runs-on: ubuntu-latest
needs: setup
strategy:
Expand Down Expand Up @@ -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:
Expand All @@ -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')
Expand Down

0 comments on commit ed58b19

Please sign in to comment.