Skip to content

Commit e134eb9

Browse files
committed
add codemagic.yml
1 parent 259aabc commit e134eb9

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

codemagic.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
workflows:
2+
build:
3+
name: Build workflow
4+
scripts:
5+
- name: install dependencies
6+
script: HOMEBREW_NO_AUTO_UPDATE=1 brew install boost openssl zmq libpgm miniupnpc ldns expat libunwind-headers protobuf
7+
- name: fetch zmq.hpp
8+
script: brew tap osrf/simulation && brew install cppzmq
9+
- name: build
10+
script: USE_SINGLE_BUILDDIR=1 make release-static -j3
11+
- name: archive
12+
working_directory: build/release
13+
script: |
14+
export ARTIFACT_NAME="aeon-mac-armv8-$(git describe --tags)"
15+
mkdir $ARTIFACT_NAME
16+
cp bin/* $ARTIFACT_NAME
17+
tar cvzf $ARTIFACT_NAME.tar.bz2 $ARTIFACT_NAME
18+
- name: SHA256 checksum
19+
working_directory: build/release
20+
script: |
21+
export ARTIFACT_NAME="aeon-mac-armv8-$(git describe --tags)"
22+
openssl sha256 $ARTIFACT_NAME.tar.bz2
23+
- name: upload to transfer.sh
24+
script: |
25+
export ARTIFACT_NAME="aeon-mac-armv8-$(git describe --tags)"
26+
curl --upload-file build/release/$ARTIFACT_NAME.tar.bz2 https://transfer.sh/$ARTIFACT_NAME.tar.bz2

0 commit comments

Comments
 (0)