-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from hirosystems/feat/signer
Update main
- Loading branch information
Showing
25 changed files
with
1,724 additions
and
309 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,19 +4,15 @@ on: | |
push: | ||
|
||
env: | ||
STACKS_BLOCKCHAIN_COMMIT: "feat/epoch-2.4" | ||
STACKS_BLOCKCHAIN_COMMIT: d0f5712332619b3140badc2d25856975d2747004 | ||
|
||
jobs: | ||
cancel-previous-runs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build-stacks-node: | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
@@ -28,21 +24,15 @@ jobs: | |
key: cache-stacks-node-${{ env.STACKS_BLOCKCHAIN_COMMIT }} | ||
- name: Install Rust - linux/amd64 | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
target: x86_64-unknown-linux-gnu | ||
run: rustup toolchain install stable | ||
- name: Install Rust - linux/arm64 | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
target: aarch64-unknown-linux-gnu | ||
run: rustup target add aarch64-unknown-linux-gnu | ||
- name: Install compilation tooling | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y g++-aarch64-linux-gnu libc6-dev-arm64-cross gcc-aarch64-linux-gnu | ||
sudo apt-get install -y g++-aarch64-linux-gnu gcc-aarch64-linux-gnu libgcc-11-dev-arm64-cross | ||
- name: Fetch Stacks node repo | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
env: | ||
|
@@ -94,7 +84,7 @@ jobs: | |
build-push-docker: | ||
needs: build-stacks-node | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
@@ -115,13 +105,13 @@ jobs: | |
images: hirosystems/stacks-api-e2e | ||
tags: | | ||
type=raw,value=latest,enable={{is_default_branch}} | ||
type=raw,value=stacks2.4,enable={{is_default_branch}} | ||
type=raw,value=stacks2.4-{{branch}}-{{sha}} | ||
type=ref,event=branch,prefix=stacks2.4- | ||
type=ref,event=pr,prefix=stacks2.4- | ||
type=semver,pattern={{version}},prefix=stacks2.4- | ||
type=semver,pattern={{major}}.{{minor}},prefix=stacks2.4- | ||
type=sha,prefix=stacks2.4- | ||
type=raw,value=stacks3.0,enable={{is_default_branch}} | ||
type=raw,value=stacks3.0-{{branch}}-{{sha}} | ||
type=ref,event=branch,prefix=stacks3.0- | ||
type=ref,event=pr,prefix=stacks3.0- | ||
type=semver,pattern={{version}},prefix=stacks3.0- | ||
type=semver,pattern={{major}}.{{minor}},prefix=stacks3.0- | ||
type=sha,prefix=stacks3.0- | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
- name: Set up Docker Buildx | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
stacking/node_modules | ||
package-lock.json |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
FROM debian:bullseye-backports | ||
FROM debian:bookworm | ||
|
||
COPY --from=ruimarinho/bitcoin-core:0.21.1 /opt/bitcoin-*/bin /usr/local/bin | ||
COPY --from=dobtc/bitcoin:25.1 /opt/bitcoin-*/bin /usr/local/bin | ||
|
||
RUN apt-get update && apt-get install -y curl/bullseye-backports jq zstd | ||
RUN apt-get update && apt-get install -y curl jq zstd | ||
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
CMD ["/bin/bash"] |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
FROM node:20-bookworm as builder | ||
|
||
RUN apt-get update && apt-get install -y curl gettext-base jq | ||
|
||
WORKDIR /root | ||
COPY ./stacking/package.json /root/ | ||
RUN npm i | ||
|
||
COPY ./stacking/stacking.ts ./stacking/common.ts ./stacking/monitor.ts ./stacking/tx-broadcaster.ts /root/ | ||
|
||
CMD ["npx", "tsx", "/root/stacking.ts"] |
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
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
Oops, something went wrong.