This repository has been archived by the owner on Apr 1, 2024. It is now read-only.
Add redirect text to the README #136
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Brim | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
tags: | |
- v*brim* | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
release: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-10.15, ubuntu-18.04, windows-2019] | |
steps: | |
# Use MSYS2's bash.exe in subsequent "shell: bash" steps. | |
- if: startsWith(matrix.os, 'windows-') | |
run: echo 'C:\msys64\usr\bin' >> $GITHUB_PATH | |
# actions/checkout@v2 chokes on Windows because Git for Windows' | |
# git.exe can't handle the colons in the names of some files under | |
# testing/btest/Baseline/. | |
- if: startsWith(matrix.os, 'windows-') | |
name: Windows alternative for actions/checkout@v2 | |
run: | | |
set -x | |
git clone --depth=1 --no-checkout --single-branch git://github.com/$GITHUB_REPOSITORY . | |
git fetch --depth=1 origin $GITHUB_REF | |
git -c core.symlinks=true checkout FETCH_HEAD -- ':(exclude)**/*:*' | |
git submodule update --depth=1 --init --jobs $NUMBER_OF_PROCESSORS --recursive --single-branch | |
- if: "!startsWith(matrix.os, 'windows-')" | |
uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
# Remove DLLs that break Zeek's OPENSSL_CORRECT_VERSION_NUMBER | |
# CMake test by shadowing DLLs in /mingw64/bin. | |
- if: startsWith(matrix.os, 'windows-') | |
run: rm $SYSTEMROOT/system32/libcrypto-1_1-x64.dll $SYSTEMROOT/system32/libssl-1_1-x64.dll | |
- if: startsWith(matrix.os, 'windows-') | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.14 | |
- uses: actions/cache@v2 | |
with: | |
path: ${{runner.temp}}/.ccache | |
key: ${{ runner.os }}-ccache | |
- run: ./brim/release | |
env: | |
CCACHE_DIR: ${{runner.temp}}/.ccache | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: ${{ matrix.os }} | |
path: zeek-*.zip | |
- if: startsWith(github.event.ref, 'refs/tags/') | |
uses: svenstaro/upload-release-action@1.1.0 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: zeek-*.zip | |
file_glob: true | |
tag: ${{ github.ref }} | |
overwrite: true |