Skip to content

Commit

Permalink
✨ Build/Release Action
Browse files Browse the repository at this point in the history
  • Loading branch information
hayesall committed Jul 29, 2021
1 parent e2d5814 commit b6dba60
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/go-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Relase Build

on:
release:
types: [created]

jobs:
generate:
name: Build Release
runs-on: ubuntu-latest
steps:

- name: 👀 Checkout
uses: actions/checkout@v2

- name: 🐿️ Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16

- name: 🦌 Set up ANTLR
run: sudo apt-get install antlr4

- name: 🏗️ Build Linter
run: make linter

- name: 📤 Upload Artifacts
uses: skx/github-action-publish-binaries@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: 'linter'
6 changes: 6 additions & 0 deletions lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,15 @@
# USAGE:
# ./lint.sh input.txt

TOKENS=$(./linter -tokens -file=$1 2>&1)
PARSE=$(./linter -file=$1 2>&1)
EXIT=0

if [[ ! -z $TOKENS ]]; then
echo "$TOKENS"
EXIT=2
fi

if [[ ! -z $PARSE ]]; then
echo "$PARSE"
EXIT=2
Expand Down

0 comments on commit b6dba60

Please sign in to comment.