Skip to content

Commit

Permalink
v0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Envy-Life committed Jan 19, 2025
1 parent e17f88f commit 410e5ea
Show file tree
Hide file tree
Showing 9 changed files with 262 additions and 233 deletions.
21 changes: 0 additions & 21 deletions .github/scripts/checks.sh

This file was deleted.

31 changes: 0 additions & 31 deletions .github/scripts/tests.sh

This file was deleted.

124 changes: 124 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
name: Build and Release

on:
workflow_dispatch:
push:
tags:
- "v*.*.*"

jobs:
build:
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest

runs-on: ${{ matrix.os }}

env:
MATRIX_OS: ${{ matrix.os }}
CARGO_NET_GIT_FETCH_WITH_CLI: true
RUST_MIN_STACK: 8388608
SKIP_GUEST_BUILD: 1

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set github url and credentials
run: |
git config --global --add url."https://${{ secrets.ACCESS_TOKEN }}:x-oauth-basic@github".insteadOf ssh://git@github
git config --global --add url."https://${{ secrets.ACCESS_TOKEN }}:x-oauth-basic@github".insteadOf https://github
git config --global --add url."https://${{ secrets.ACCESS_TOKEN }}:x-oauth-basic@github".insteadOf git@github
- name: Install clang
run: |
if [[ "${RUNNER_OS}" == "macOS" ]]; then
brew install llvm
brew install openssl
brew install pkg-config
brew install libiconv
brew install libpq && brew link --force libpq
export PATH="/usr/local/opt/libpq/bin:$PATH"
export LIBRARY_PATH=$LIBRARY_PATH:$(brew --prefix)/lib:$(brew --prefix)/opt/libiconv/lib
fi
if [[ "${RUNNER_OS}" == "windows-latest" ]]; then
choco install llvm
choco install openssl
choco install pkg-config
fi
if [[ "${RUNNER_OS}" == "buildjet-16vcpu-ubuntu-2004" ]]; then
sudo apt update
sudo apt install -y pkg-config libssl-dev clang
fi
- name: Install Latest Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
default: true
override: true

- name: Build-Node
id: build-node
shell: bash
run: |
cd crates/rollup
cargo build --bin node --release
binary_extension=""
if [[ "$RUNNER_OS" == "Linux" ]]; then
binary_path="spicenet-ubuntu-latest"
fi
if [[ "${RUNNER_OS}" == "Windows" ]]; then
binary_extension=".exe"
binary_path="spicenet-windows-latest${binary_extension}"
fi
if [[ "${RUNNER_OS}" == "macOS" ]]; then
if [[ "${MATRIX_OS}" == "macos-latest" ]]; then
binary_path="spicenet-macos-m1-latest"
else
binary_path="spicenet-macos-intel-latest"
fi
fi
cd ../..
mv "target/release/node${binary_extension}" "${binary_path}"
echo "::set-output name=binary_path::${binary_path}"
strip "${binary_path}"
- name: Build cli-wallet
id: build-cli-wallet
shell: bash
run: |
cd crates/rollup
cargo build --bin cli-wallet --release
binary_extension=""
if [[ "$RUNNER_OS" == "Linux" ]]; then
binary_path="cli-wallet-ubuntu-latest"
fi
if [[ "${RUNNER_OS}" == "Windows" ]]; then
binary_extension=".exe"
binary_path="cli-wallet-windows-latest${binary_extension}"
fi
if [[ "${RUNNER_OS}" == "macOS" ]]; then
if [[ "${MATRIX_OS}" == "macos-latest" ]]; then
binary_path="cli-wallet-macos-m1-latest"
else
binary_path="cli-wallet-macos-intel-latest"
fi
fi
cd ../..
mv "target/release/cli-wallet${binary_extension}" "${binary_path}"
echo "::set-output name=binary_path::${binary_path}"
strip "${binary_path}"
- name: Release Tags
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
${{ steps.build-node.outputs.binary_path }}
${{ steps.build-cli-wallet.outputs.binary_path }}
11 changes: 0 additions & 11 deletions .github/workflows/changelog.yml

This file was deleted.

57 changes: 0 additions & 57 deletions .github/workflows/tests.yml

This file was deleted.

4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PROJECT_ROOT := $(shell git rev-parse --show-toplevel)
SOV_CLI_REL_PATH := $(PROJECT_ROOT)/target/debug/starter-cli-wallet
SOV_CLI_REL_PATH := $(PROJECT_ROOT)/target/debug/cli-wallet
SPICENET_NODE_REL_PATH := $(PROJECT_ROOT)/target/debug/node

CELESTIA_CONFIG := $(PROJECT_ROOT)/celestia_rollup_config.toml
Expand Down Expand Up @@ -58,7 +58,7 @@ clean-db:
rm -rf demo_data

build-sov-cli:
cargo build --bin starter-cli-wallet
cargo build --bin cli-wallet

build-node:
cd crates/rollup; \
Expand Down
Loading

0 comments on commit 410e5ea

Please sign in to comment.