mirror of
https://github.com/Yvee1/hascard.git
synced 2024-11-22 04:33:06 +03:00
Add linux build
This commit is contained in:
parent
9554a3d75b
commit
401540435b
18
.github/workflows/build.yml
vendored
18
.github/workflows/build.yml
vendored
@ -1,7 +1,7 @@
|
||||
name: build
|
||||
on: [push]
|
||||
jobs:
|
||||
build:
|
||||
build-macos:
|
||||
runs-on: macos-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
@ -17,3 +17,19 @@ jobs:
|
||||
- run: stack test
|
||||
- name: Attach binary to release, if this is a release
|
||||
run: ./.github/scripts/attach-binary.sh
|
||||
build-ubuntu:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
- name: Set tag environment
|
||||
run: if [[ "$GITHUB_REF" == refs/tags/* ]]; then echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV; else echo "not a release build"; fi
|
||||
- name: Install ghr
|
||||
run: ./.github/scripts/install-ghr.sh
|
||||
- name: Install stack
|
||||
run: ./.github/scripts/install-stack.sh
|
||||
- run: stack setup
|
||||
- run: stack build
|
||||
- run: stack test
|
||||
- name: Attach binary to release, if this is a release
|
||||
run: ./.github/scripts/attach-binary.sh
|
||||
|
Loading…
Reference in New Issue
Block a user