-
Notifications
You must be signed in to change notification settings - Fork 3
63 lines (52 loc) · 1.38 KB
/
build.yaml
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: "Build For Algojig"
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, macos-latest]
steps:
- name: Check out go-algorand
uses: actions/checkout@v2
with:
repository: algorand/go-algorand
ref: v3.13.3-stable
path: go-algorand
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 0
path: algojig
- name: Install golang
uses: actions/setup-go@v3
with:
go-version: "1.17.13"
- name: Build go-algorand
run: |
cd go-algorand
export ALGORAND_DEADLOCK=enable
export SKIP_GO_INSTALLATION=True
scripts/travis/build.sh
- name: Build algojig
run: |
cd algojig/gojig
echo "RUNNER_ARCH: $RUNNER_ARCH"
echo "../algojig/algojig_$RUNNER_ARCH"
go build -o ../algojig/algojig_$RUNNER_ARCH .
# Used to host cibuildwheel
- uses: actions/setup-python@v3
- name: Build wheels
run: |
cd algojig
pip install wheel
pip wheel -w ../wheelhouse .
- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl