Skip to content

Commit

Permalink
CI: Add release artifacts.
Browse files Browse the repository at this point in the history
  • Loading branch information
overcookedpanda authored and Stackout committed Jun 13, 2020
1 parent 2f70687 commit 7d73ac8
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 51 deletions.
83 changes: 32 additions & 51 deletions .github/workflows/ci.yml
Expand Up @@ -46,15 +46,27 @@ jobs:
- name: install build requirements
run: sudo apt-get install build-essential libtool autotools-dev automake pkg-config bsdmainutils python3 ccache
- name: install dependencies
run: sudo apt-get install libevent-dev python3-zmq python3-dev libboost-python-dev libboost-system-dev libboost-filesystem-dev libboost-test-dev libboost-thread-dev libminiupnpc-dev libzmq3-dev libdb4.8-dev libdb4.8++-dev
run: sudo apt-get install libevent-dev python3-zmq python3-dev libboost-python-dev libboost-system-dev libboost-filesystem-dev libboost-test-dev libboost-thread-dev libminiupnpc-dev libzmq3-dev libdb4.8-dev libdb4.8++-dev libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libqrencode-dev
- name: autogen
run: ./autogen.sh
- name: configure
run: ./configure
--without-gui
--disable-bench
- name: make
run: make -j2
- name: make deploy
if: success()
run: make deploy
- name: create artifacts
if: success()
run: |
mv ./release Pexa-${{ steps.extract_branch.outputs.last_tag }}-${{ steps.extract_branch.outputs.branch }}.${{ steps.extract_branch.outputs.commits_ahead }}-${{ steps.extract_branch.outputs.git_hash }}
- name: upload artifacts
if: success()
uses: actions/upload-artifact@v2
with:
name: Linux x64
path: Pexa-${{ steps.extract_branch.outputs.last_tag }}-${{ steps.extract_branch.outputs.branch }}.${{ steps.extract_branch.outputs.commits_ahead }}-${{ steps.extract_branch.outputs.git_hash }}

x86_64-w64-mingw32:
runs-on: ubuntu-latest
Expand All @@ -70,6 +82,7 @@ jobs:
echo "::set-output name=branch::$(echo ${GITHUB_REF#refs/heads/} | sed 's/\//\./g')"
echo "::set-output name=commits_ahead::$(git rev-list $(git describe --tags $(git rev-list --tags --max-count=1)).. --count)"
echo "::set-output name=last_tag::$(git describe --tags $(git rev-list --tags --max-count=1))"
echo "::set-output name=version::$(cat configure.ac | head -n4 | tail -n3 | sed 's/[^[:digit:]]//g;' | sed ':a;N;$!ba;s/\n/./g')"
- name: Prepare ccache timestamp
id: cache_timestamp
run: |
Expand Down Expand Up @@ -107,10 +120,25 @@ jobs:
run: ./autogen.sh
- name: configure
run: CONFIG_SITE=$PWD/depends/x86_64-w64-mingw32/share/config.site ./configure --prefix=/
--without-gui
--disable-bench
- name: make
run: make -j2
run: make -j2 deploy
- name: create artifacts
if: success()
run: |
mv ./release Pexa-${{ steps.extract_branch.outputs.last_tag }}-${{ steps.extract_branch.outputs.branch }}.${{ steps.extract_branch.outputs.commits_ahead }}-${{ steps.extract_branch.outputs.git_hash }}
- name: upload artifacts
if: success()
uses: actions/upload-artifact@v2
with:
name: Windows x64
path: Pexa-${{ steps.extract_branch.outputs.last_tag }}-${{ steps.extract_branch.outputs.branch }}.${{ steps.extract_branch.outputs.commits_ahead }}-${{ steps.extract_branch.outputs.git_hash }}
- name: upload pexa-${{ steps.extract_branch.outputs.version }}-win64-setup.exe
if: success()
uses: actions/upload-artifact@v2
with:
name: Windows x64 Setup
path: pexa-${{ steps.extract_branch.outputs.version }}-win64-setup.exe

x86_64-apple-darwin16:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -164,10 +192,7 @@ jobs:
run: ./autogen.sh
- name: configure
run: ./configure --prefix=${PWD}/depends/x86_64-apple-darwin16
--without-gui
--disable-shared
--disable-bench
--without-qtdbus
- name: make
run: make -j2

Expand Down Expand Up @@ -205,50 +230,6 @@ jobs:
run: ./autogen.sh
- name: configure
run: ./configure
--without-gui
--disable-bench
- name: make
run: make -j2

linux-asan:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v1
with:
path: main
- name: Extract branch name & commit
id: extract_branch
run: |
echo "::set-output name=git_hash::$(git rev-parse --short=7 "$GITHUB_SHA")"
echo "::set-output name=branch::$(echo ${GITHUB_REF#refs/heads/} | sed 's/\//\./g')"
echo "::set-output name=commits_ahead::$(git rev-list $(git describe --tags $(git rev-list --tags --max-count=1)).. --count)"
echo "::set-output name=last_tag::$(git describe --tags $(git rev-list --tags --max-count=1))"
- name: Prepare ccache timestamp
id: cache_timestamp
run: |
current_date=`date --utc +%Y%m%d_%H%M%SZ`
echo "::set-output name=timestamp::${current_date}"
- name: ccache cache files
if: github.event_name == 'push' || github.event_name == 'pull_request'
uses: actions/cache@v1.1.0
with:
path: ~/.ccache
key: linux-asan-ccache-${{ steps.cache_timestamp.outputs.timestamp }}
restore-keys: |
linux-asan-ccache-
- name: add bitcoin ppa
run: sudo add-apt-repository ppa:bitcoin/bitcoin
- name: install build requirements
run: sudo apt-get install build-essential libtool autotools-dev automake pkg-config bsdmainutils python3 ccache libasan4
- name: install dependencies
run: sudo apt-get install libevent-dev python3-zmq python3-dev libboost-python-dev libboost-system-dev libboost-filesystem-dev libboost-test-dev libboost-thread-dev libminiupnpc-dev libzmq3-dev libdb4.8-dev libdb4.8++-dev
- name: autogen
run: ./autogen.sh
- name: configure
run: ./configure
--without-gui
--disable-bench
--with-sanitizers=address
- name: make
run: make -j2
19 changes: 19 additions & 0 deletions Makefile.am
Expand Up @@ -164,6 +164,25 @@ if TARGET_WINDOWS
deploy: $(PEXA_WIN_INSTALLER)
endif

if TARGET_LINUX
if ENABLE_QT
deploy: all-recursive
$(MKDIR_P) $(top_builddir)/release
STRIPPROG="$(STRIP)" $(INSTALL_STRIP_PROGRAM) $(PEXAD_BIN) $(top_builddir)/release
STRIPPROG="$(STRIP)" $(INSTALL_STRIP_PROGRAM) $(PEXA_QT_BIN) $(top_builddir)/release
STRIPPROG="$(STRIP)" $(INSTALL_STRIP_PROGRAM) $(PEXA_CLI_BIN) $(top_builddir)/release
STRIPPROG="$(STRIP)" $(INSTALL_STRIP_PROGRAM) $(PEXA_TX_BIN) $(top_builddir)/release
STRIPPROG="$(STRIP)" $(INSTALL_STRIP_PROGRAM) $(PEXA_WALLET_BIN) $(top_builddir)/release
else
deploy: all-recursive
$(MKDIR_P) $(top_builddir)/release
STRIPPROG="$(STRIP)" $(INSTALL_STRIP_PROGRAM) $(PEXAD_BIN) $(top_builddir)/release
STRIPPROG="$(STRIP)" $(INSTALL_STRIP_PROGRAM) $(PEXA_CLI_BIN) $(top_builddir)/release
STRIPPROG="$(STRIP)" $(INSTALL_STRIP_PROGRAM) $(PEXA_TX_BIN) $(top_builddir)/release
STRIPPROG="$(STRIP)" $(INSTALL_STRIP_PROGRAM) $(PEXA_WALLET_BIN) $(top_builddir)/release
endif
endif

$(PEXA_QT_BIN): FORCE
$(MAKE) -C src qt/$(@F)

Expand Down
1 change: 1 addition & 0 deletions README.md
@@ -1,5 +1,6 @@
Pexa Core integration/staging tree
=====================================
![.github/workflows/ci.yml](https://github.com/VeriBlock/pop-pexa/workflows/.github/workflows/ci.yml/badge.svg?branch=master)

https://pexacore.org

Expand Down
1 change: 1 addition & 0 deletions configure.ac
Expand Up @@ -1598,6 +1598,7 @@ if test x$build_pexa_wallet$build_pexa_cli$build_pexa_tx$build_pexa_libs$build_p
AC_MSG_ERROR([No targets! Please specify at least one of: --with-utils --with-libs --with-daemon --with-gui --enable-bench or --enable-tests])
fi

AM_CONDITIONAL([TARGET_LINUX], [test x$TARGET_OS = xlinux])
AM_CONDITIONAL([TARGET_DARWIN], [test x$TARGET_OS = xdarwin])
AM_CONDITIONAL([BUILD_DARWIN], [test x$BUILD_OS = xdarwin])
AM_CONDITIONAL([TARGET_WINDOWS], [test x$TARGET_OS = xwindows])
Expand Down

0 comments on commit 7d73ac8

Please sign in to comment.