Skip to content

Switch to testnet

Switch to testnet #56

Workflow file for this run

name: Release CI
on:
workflow_dispatch:
push:
tags:
- "v*"
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
name: linux-x86_64
suffix: ''
- target: aarch64-unknown-linux-gnu
os: ubuntu-latest
name: linux-aarch64
suffix: ''
- target: x86_64-apple-darwin
os: macos-latest
name: macos
suffix: ''
# - target: x86_64-pc-windows-msvc
# os: windows-latest
# name: windows
# suffix: .exe
runs-on: ${{ matrix.os }}
steps:
- uses: actions/[email protected]
- uses: Vampire/[email protected]
with:
additional-packages:
git
clang
curl
libssl-dev
llvm
libudev-dev
make
protobuf-compile
if: matrix.os == 'windows-latest'
- uses: actions-rs/[email protected]
with:
profile: minimal
toolchain: nightly-2023-05-20
override: true
- name: Add WASM target
run: |
rustup target add wasm32-unknown-unknown
- uses: actions/[email protected]
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
- uses: actions/[email protected]
with:
path: ~/.cargo/git
key: ${{ runner.os }}-cargo-git-${{ hashFiles('**/Cargo.lock') }}
- uses: actions/[email protected]
with:
path: target
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
- uses: actions-rs/[email protected]
with:
command: build
args: '--release'
- name: Package
shell: bash
run: |
cd target/release
tar czvf ../../poscan-consensus-${{ matrix.name }}.tar.gz poscan-consensus${{ matrix.suffix }}
cd -
- name: Publish
uses: softprops/[email protected]
with:
files: "poscan-consensus-*"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}