Skip to content

Commit

Permalink
Setup publish release actions
Browse files Browse the repository at this point in the history
  • Loading branch information
timbod7 committed Mar 13, 2020
1 parent 64bd175 commit 6e00faa
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ jobs:
${{ runner.os }}-
- name: Build and run tests
run: "cd haskell; stack build adl-compiler; stack test --fast --no-terminal adl-compiler"
run: "cd haskell; stack build --fast adl-compiler; stack test --fast --no-terminal adl-compiler"
37 changes: 37 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Publish release
on:
pull_request:

jobs:
build:
name: Publish release
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-18.04, macos-latest]
steps:
- name: Setup Stack
uses: mstksg/setup-stack@v1

- name: Clone project
uses: actions/checkout@v2
# Fetch all history so git describe works
- run: |
git fetch --prune --unshallow
- name: Cache dependencies
uses: actions/cache@v1
with:
path: ~/.stack
key: ${{ runner.os }}-${{ hashFiles('haskell/stack.yaml') }}
restore-keys: |
${{ runner.os }}-
- name: Build compiler and generate zip
run: "cd haskell; stack build adl-compiler; ./tools/make-dist.hs"

- name: Upload dist directory artifacts
uses: actions/upload-artifact@v1
with:
name: adl-${{ runner.os }}
path: dist

0 comments on commit 6e00faa

Please sign in to comment.