Add switches to toggle test-only and bounceable address generation #38
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI linux | |
on: | |
push: | |
branches: [ master ] | |
release: | |
types: [created] | |
jobs: | |
build: | |
name: CI on Linux | |
runs-on: ubuntu-18.04 | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- name: Install toolchain | |
uses: ada-actions/toolchain@ce2021 | |
with: | |
distrib: community | |
- name: Build release | |
run: > | |
gprbuild -P vaniton.gpr -XBUILD=RELEASE -j0 | |
- name: Upload binaries | |
uses: actions/upload-artifact@v2 | |
with: | |
name: vaniton-bin-linux.zip | |
path: | | |
bin/vaniton | |
bin/mnemonic2address | |
bin/benchmark | |
README.md | |
LICENSE.txt | |
# Release steps | |
- name: Package binaries | |
if: (github.event_name == 'release') | |
run: zip vaniton-bin-linux.zip bin/vaniton bin/mnemonic2address bin/benchmark README.md LICENSE.txt | |
- name: Retrieve upload URL for the release | |
if: (github.event_name == 'release') | |
id: get_release | |
uses: bruceadams/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
- name: Get release version | |
if: (github.event_name == 'release') | |
id: get_version | |
uses: battila7/get-version-action@v2 | |
- name: Upload binary assets | |
if: (github.event_name == 'release') | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.get_release.outputs.upload_url }} | |
asset_path: vaniton-bin-linux.zip | |
asset_name: vaniton-${{ steps.get_version.outputs.version-without-v }}-bin-x86_64-linux.zip | |
asset_content_type: application/zip |