forked from algorand/go-algorand
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (39 loc) · 1.45 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: "Build workflow"
on:
pull_request:
jobs:
build-test-windows:
runs-on: windows-2022
defaults:
run:
shell: msys2 {0}
steps:
- name: Install msys2
uses: msys2/setup-msys2@v2
with:
update: true
path-type: inherit
- name: Check out code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install golang
uses: actions/setup-go@v2
with:
go-version: '1.14.7'
- name: Build Test
run: |
export ALGORAND_DEADLOCK=enable
export SKIP_GO_INSTALLATION=True
scripts/travis/build_test.sh
# - name: Upload artifact to Github
# uses: actions/upload-artifact@v2
# with:
# if-no-files-found: error
# path: $(git ls-files -o | grep -v crypto/libs | grep -v crypto/copies | grep -v crypto/libsodium-fork | grep -v crypto/lib/ | grep -v ^gen/ | grep -v swagger.json.validated | tr "\n" ":")
- name: Slack Notification
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
run: |
curl -X POST --data-urlencode "payload={\"text\": \"Nightly windows build test on Github failed. ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \"}" $SLACK_WEBHOOK
if: ${{ failure() && (contains(github.base_ref, 'rel/nightly') || contains(github.base_ref, 'rel/beta') || contains(github.base_ref, 'rel/stable')) }}