Skip to content

Commit

Permalink
feat: implement kademlia boot node logic (#6)
Browse files Browse the repository at this point in the history
* feat: implement kademlia boot node logic

* ci: remove armv7 build

* chore: add more logging

* chore: rename project from relay-server to boot-node
  • Loading branch information
fbozic authored May 18, 2024
1 parent 0f6286b commit 9cbc2ca
Show file tree
Hide file tree
Showing 10 changed files with 287 additions and 170 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/release-chat-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ on:
push:
branches:
- master
- feat/chat-example
permissions: write-all
jobs:
metadata:
Expand All @@ -25,7 +24,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
RELEASE_URL=$(curl --silent "https://api.github.com/repos/calimero-network/relay-server/releases/tags/${{ steps.get_version.outputs.version }}" \
RELEASE_URL=$(curl --silent "https://api.github.com/repos/calimero-network/boot-node/releases/tags/${{ steps.get_version.outputs.version }}" \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" | jq -r '.url')
if [[ "$RELEASE_URL" != "null" ]]; then
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-dcutr-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
RELEASE_URL=$(curl --silent "https://api.github.com/repos/calimero-network/relay-server/releases/tags/${{ steps.get_version.outputs.version }}" \
RELEASE_URL=$(curl --silent "https://api.github.com/repos/calimero-network/boot-node/releases/tags/${{ steps.get_version.outputs.version }}" \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" | jq -r '.url')
if [[ "$RELEASE_URL" != "null" ]]; then
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
RELEASE_URL=$(curl --silent "https://api.github.com/repos/calimero-network/relay-server/releases/tags/${{ steps.get_version.outputs.version }}" \
RELEASE_URL=$(curl --silent "https://api.github.com/repos/calimero-network/boot-node/releases/tags/${{ steps.get_version.outputs.version }}" \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" | jq -r '.url')
if [[ "$RELEASE_URL" != "null" ]]; then
Expand Down Expand Up @@ -57,15 +57,11 @@ jobs:
- name: Build for Aarch Linux
run: cross build --release --target=aarch64-unknown-linux-gnu

- name: Build for ARMv7 Linux
run: cross build --release --target=armv7-unknown-linux-gnueabihf

- name: Create artifacts directory
run: |
mkdir -p artifacts
cp target/x86_64-unknown-linux-gnu/release/relay-server artifacts/relay-server-x86_64-unknown-linux
cp target/aarch64-unknown-linux-gnu/release/relay-server artifacts/relay-server-aarch64-unknown-linux
cp target/armv7-unknown-linux-gnueabihf/release/relay-server artifacts/relay-server-armv7-unknown-linux
cp target/x86_64-unknown-linux-gnu/release/boot-node artifacts/boot-node-x86_64-unknown-linux
cp target/aarch64-unknown-linux-gnu/release/boot-node artifacts/boot-node-aarch64-unknown-linux
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
Expand Down
Loading

0 comments on commit 9cbc2ca

Please sign in to comment.