Skip to content

Commit

Permalink
Merge pull request #9 from aorumbayev/main
Browse files Browse the repository at this point in the history
Initial bare minimum CI
  • Loading branch information
fergalwalsh authored May 25, 2023
2 parents 8b31422 + d079fd9 commit 28f1e70
Show file tree
Hide file tree
Showing 7 changed files with 71 additions and 6 deletions.
63 changes: 63 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,5 @@ dmypy.json
.idea

/bin
pyvenv.cfg
pyvenv.cfg
wheelhouse/
Binary file removed algojig/algojig_arm64
Binary file not shown.
Binary file removed algojig/algojig_x86_64
Binary file not shown.
4 changes: 2 additions & 2 deletions gojig/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module github.com/Hipo/algojig

go 1.18

replace github.com/algorand/go-algorand => /Users/fergal/go-algorand
replace github.com/algorand/go-algorand => ../../go-algorand

require (
github.com/algorand/go-algorand v0.0.0
Expand All @@ -11,7 +11,7 @@ require (

require (
github.com/DataDog/zstd v1.5.2 // indirect
github.com/algorand/avm-abi v0.1.1 // indirect
github.com/algorand/avm-abi v0.2.0 // indirect
github.com/algorand/falcon v0.0.0-20220727072124-02a2a64c4414 // indirect
github.com/algorand/go-deadlock v0.2.2 // indirect
github.com/algorand/go-sumhash v0.1.0 // indirect
Expand Down
4 changes: 2 additions & 2 deletions gojig/go.sum
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
github.com/DataDog/zstd v1.5.2 h1:vUG4lAyuPCXO0TLbXvPv7EB7cNK1QV/luu55UHLrrn8=
github.com/DataDog/zstd v1.5.2/go.mod h1:g4AWEaM3yOg3HYfnJ3YIawPnVdXJh9QME85blwSAmyw=
github.com/algorand/avm-abi v0.1.1 h1:dbyQKzXiyaEbzpmqXFB30yAhyqseBsyqXTyZbNbkh2Y=
github.com/algorand/avm-abi v0.1.1/go.mod h1:+CgwM46dithy850bpTeHh9MC99zpn2Snirb3QTl2O/g=
github.com/algorand/avm-abi v0.2.0 h1:bkjsG+BOEcxUcnGSALLosmltE0JZdg+ZisXKx0UDX2k=
github.com/algorand/avm-abi v0.2.0/go.mod h1:+CgwM46dithy850bpTeHh9MC99zpn2Snirb3QTl2O/g=
github.com/algorand/falcon v0.0.0-20220727072124-02a2a64c4414 h1:nwYN+GQ7Z5OOfZwqBO1ma7DSlP7S1YrKWICOyjkwqrc=
github.com/algorand/falcon v0.0.0-20220727072124-02a2a64c4414/go.mod h1:OkQyHlGvS0kLNcIWbC21/uQcnbfwSOQm+wiqWwBG9pQ=
github.com/algorand/go-codec v1.1.8/go.mod h1:XhzVs6VVyWMLu6cApb9/192gBjGRVGm5cX5j203Heg4=
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
version=VERSION,
description=DESCRIPTION,
url=URL,
platforms=['macos-arm64', 'linux-x64'],
keywords=KEYWORDS,
license=LICENSE,
packages=["algojig"],
Expand All @@ -31,4 +32,4 @@
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
],
)
)

0 comments on commit 28f1e70

Please sign in to comment.