Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: replace travis with github actions #507

Merged
merged 3 commits into from
Feb 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 82 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
name: Build

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ${{ matrix.build.os }}
defaults:
run:
shell: bash

strategy:
matrix:
build:
- os: macos-latest
ostype: darwin
arch: x64

- os: macos-latest
ostype: darwin
arch: arm64

- os: ubuntu-latest
ostype: linux
arch: x64

- os: ubuntu-latest
ostype: linux
arch: arm64

- os: ubuntu-latest
ostype: linux
arch: armv7l

- os: windows-latest
ostype: win32
arch: ia32

- os: windows-latest
ostype: win32
arch: x64

- os: windows-latest
ostype: win32
arch: arm64

name: Build (${{ matrix.build.ostype }} ${{ matrix.build.arch }})

steps:
- uses: actions/checkout@v2

- name: Setup NodeJS
uses: actions/setup-node@v2
with:
node-version: 16
cache: npm

- name: Install Dependencies
run: npm ci

- name: Build
run: npm run build -- --arch=${{ matrix.build.arch }}

- name: Zip
run: 7z a -tzip -mx9 BloodHound-${{ matrix.build.ostype }}-${{ matrix.build.arch }}.zip BloodHound-${{ matrix.build.ostype }}-${{ matrix.build.arch }}

- name: Update Rolling Release
if: "! startsWith(github.event_name, 'pull_request')"
uses: softprops/action-gh-release@v1
with:
name: Rolling Release (unstable)
tag_name: rolling
prerelease: true
files: BloodHound-${{ matrix.build.ostype }}-${{ matrix.build.arch }}.zip
body: |
Rolling release of BloodHound comiled from source (${{ github.sha }})

This is automatically kept up-to-date with the `${{ github.ref_name }}` ${{ github.ref_type }}.
73 changes: 73 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: Publish

on:
push:
tags:
- "v*.*.*"

jobs:
build:
runs-on: ${{ matrix.build.os }}
defaults:
run:
shell: bash

strategy:
matrix:
build:
- os: macos-latest
ostype: darwin
arch: x64

- os: macos-latest
ostype: darwin
arch: arm64

- os: ubuntu-latest
ostype: linux
arch: x64

- os: ubuntu-latest
ostype: linux
arch: arm64

- os: ubuntu-latest
ostype: linux
arch: armv7l

- os: windows-latest
ostype: win32
arch: ia32

- os: windows-latest
ostype: win32
arch: x64

- os: windows-latest
ostype: win32
arch: arm64

name: Build (${{ matrix.build.ostype }} ${{ matrix.build.arch }})

steps:
- uses: actions/checkout@v2

- name: Setup NodeJS
uses: actions/setup-node@v2
with:
node-version: 16
cache: npm

- name: Install Dependencies
run: npm ci

- name: Build
run: npm run build -- --arch=${{ matrix.build.arch }}

- name: Zip
run: 7z a -tzip -mx9 BloodHound-${{ matrix.build.ostype }}-${{ matrix.build.arch }}.zip BloodHound-${{ matrix.build.ostype }}-${{ matrix.build.arch }}

- name: Upload
uses: softprops/action-gh-release@v1
with:
files: BloodHound-${{ matrix.build.ostype }}-${{ matrix.build.arch }}.zip
48 changes: 0 additions & 48 deletions .travis.yml

This file was deleted.

3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[![Build](https://github.com/BloodHoundAD/BloodHound/actions/workflows/build.yml/badge.svg)](https://github.com/BloodHoundAD/BloodHound/actions/workflows/build.yml)
[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/BloodHoundAD/BloodHound)](https://github.com/BloodHoundAD/BloodHound/releases/latest)

# Getting Started with BloodHound

To get started with BloodHound, check out the [BloodHound docs.](https://bloodhound.readthedocs.io/en/latest/index.html)
Expand Down
41 changes: 0 additions & 41 deletions appveyor.yml

This file was deleted.

34 changes: 0 additions & 34 deletions deploy.sh

This file was deleted.

Loading