NO-ENDPOINT: Updated OpenSearch Schema (#139) #141
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
# Only trigger when a PR is committed. | |
name: Linux Build All Arches | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: '^1.18' | |
- run: go version | |
- name: Get dependencies | |
run: | | |
go get -v -t -d ./... | |
sudo apt-get install mingw-w64-x86-64-dev gcc-mingw-w64-x86-64 gcc-mingw-w64 musl-tools | |
- name: Use Node.js v16 | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 16 | |
- name: npm install gui | |
run: | | |
cd velociraptor/gui/velociraptor/ | |
npm ci | |
npm run build | |
cd ../../../ | |
- name: Build All Architectures | |
# Uncomment the architectures you want here. NOTE: DarwinBase | |
# does not include yara or modules with C compilers needed. | |
run: | | |
export PATH=$PATH:~/go/bin/ | |
cd velociraptor/ | |
make linux | |
cd ../ | |
go run make.go -v LinuxMusl | |
go run make.go -v Windows | |
go run make.go -v DarwinBase | |
- name: StoreBinaries | |
uses: actions/upload-artifact@v1 | |
with: | |
name: Binaries | |
path: output |