Skip to content

Bump version to 0.1.0 #93

Bump version to 0.1.0

Bump version to 0.1.0 #93

Workflow file for this run

name: Build binaries (rust)
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Prepare
run: >
sudo apt-get install -y musl musl-tools
- name: Checkout
uses: actions/checkout@v1
- name: Cache
uses: actions/cache@v2
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install latest rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: x86_64-unknown-linux-musl
default: true
override: true
- name: Build
run: >
cargo build --locked --bins --release --target=x86_64-unknown-linux-musl --features openssl/vendored &&
strip target/x86_64-unknown-linux-musl/release/agnos &&
strip target/x86_64-unknown-linux-musl/release/agnos-generate-accounts-keys &&
mv target/x86_64-unknown-linux-musl/release/agnos target/x86_64-unknown-linux-musl/release/agnos_amd64 &&
mv target/x86_64-unknown-linux-musl/release/agnos-generate-accounts-keys target/x86_64-unknown-linux-musl/release/agnos-generate-accounts-keys_amd64
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
target/x86_64-unknown-linux-musl/release/agnos_amd64
target/x86_64-unknown-linux-musl/release/agnos-generate-accounts-keys_amd64
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}