Skip to content

Commit

Permalink
Merge pull request #51 from plebhash/dev-xyephy
Browse files Browse the repository at this point in the history
Dev xyephy
  • Loading branch information
plebhash authored Apr 23, 2024
2 parents 24b8b1d + 886c468 commit a9bf9b3
Show file tree
Hide file tree
Showing 14 changed files with 554 additions and 137 deletions.
179 changes: 162 additions & 17 deletions .github/workflows/release-bin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,21 @@ jobs:
with:
toolchain: stable
override: true

- name: Compile Native
run: cargo build --release --locked --manifest-path=roles/pool/Cargo.toml

- name: Install cross
run: cargo install cross

- name: Compile Binaries for aarch64-unknown-linux-gnu
if: matrix.os == 'ubuntu-20.04'
run: cross build --release --locked --manifest-path=roles/pool/Cargo.toml --target aarch64-unknown-linux-gnu

- name: Compile Binaries for arm-unknown-linux-gnueabi
if: matrix.os == 'ubuntu-20.04'
run: cross build --release --locked --manifest-path=roles/pool/Cargo.toml --target arm-unknown-linux-gnueabi

- name: Install aarch64-apple-darwin target
if: matrix.os == 'macos-latest'
run: rustup target add aarch64-apple-darwin
Expand All @@ -36,7 +47,7 @@ jobs:
if: matrix.os == 'ubuntu-20.04'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
repo_token: ${{ secrets.ACTION_TOKEN }}
file: roles/target/release/pool_sv2
asset_name: pool_sv2-x86_64-linux-gnu
tag: ${{ github.ref }}
Expand All @@ -45,16 +56,34 @@ jobs:
if: matrix.os == 'macos-latest'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
repo_token: ${{ secrets.ACTION_TOKEN }}
file: roles/target/release/pool_sv2
asset_name: pool_sv2-x86_64-apple-darwin
tag: ${{ github.ref }}

- name: Upload Linux aarch64 binaries to release
if: matrix.os == 'ubuntu-20.04'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.ACTION_TOKEN }}
file: roles/target/aarch64-unknown-linux-gnu/release/pool_sv2
asset_name: pool_sv2-aarch64-linux-gnu
tag: ${{ github.ref }}

- name: Upload Linux ARM binaries to release
if: matrix.os == 'ubuntu-20.04'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.ACTION_TOKEN }}
file: roles/target/arm-unknown-linux-gnueabi/release/pool_sv2
asset_name: pool_sv2-arm-linux-gnueabi
tag: ${{ github.ref }}

- name: Upload MacOS ARM64 binaries to release
if: matrix.os == 'macos-latest'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
repo_token: ${{ secrets.ACTION_TOKEN }}
file: roles/target/aarch64-apple-darwin/release/pool_sv2
asset_name: pool_sv2-aarch64-apple-darwin
tag: ${{ github.ref }}
Expand All @@ -73,6 +102,17 @@ jobs:

- name: Compile Native
run: cargo build --release --locked --manifest-path=roles/jd-client/Cargo.toml

- name: Install cross
run: cargo install cross

- name: Compile Binaries for aarch64-unknown-linux-gnu
if: matrix.os == 'ubuntu-20.04'
run: cross build --release --locked --manifest-path=roles/jd-client/Cargo.toml --target aarch64-unknown-linux-gnu

- name: Compile Binaries for arm-unknown-linux-gnueabi
if: matrix.os == 'ubuntu-20.04'
run: cross build --release --locked --manifest-path=roles/jd-client/Cargo.toml --target arm-unknown-linux-gnueabi

- name: Install aarch64-apple-darwin target
if: matrix.os == 'macos-latest'
Expand All @@ -86,16 +126,34 @@ jobs:
if: matrix.os == 'ubuntu-20.04'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
repo_token: ${{ secrets.ACTION_TOKEN }}
file: roles/target/release/jd_client
asset_name: jd_client-x86_64-linux-gnu
tag: ${{ github.ref }}

- name: Upload Linux aarch64 binaries to release
if: matrix.os == 'ubuntu-20.04'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.ACTION_TOKEN }}
file: roles/target/aarch64-unknown-linux-gnu/release/jd_client
asset_name: jd_client-aarch64-linux-gnu
tag: ${{ github.ref }}

- name: Upload Linux ARM binaries to release
if: matrix.os == 'ubuntu-20.04'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.ACTION_TOKEN }}
file: roles/target/arm-unknown-linux-gnueabi/release/jd_client
asset_name: jd_client-arm-linux-gnueabi
tag: ${{ github.ref }}

- name: Upload MacOS x86-64 binaries to release
if: matrix.os == 'macos-latest'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
repo_token: ${{ secrets.ACTION_TOKEN }}
file: roles/target/release/jd_client
asset_name: jd_client-x86_64-apple-darwin
tag: ${{ github.ref }}
Expand All @@ -104,7 +162,7 @@ jobs:
if: matrix.os == 'macos-latest'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
repo_token: ${{ secrets.ACTION_TOKEN }}
file: roles/target/aarch64-apple-darwin/release/jd_client
asset_name: jd_client-aarch64-apple-darwin
tag: ${{ github.ref }}
Expand All @@ -123,6 +181,17 @@ jobs:

- name: Compile Native
run: cargo build --release --locked --manifest-path=roles/jd-server/Cargo.toml

- name: Install cross
run: cargo install cross

- name: Compile Binaries for aarch64-unknown-linux-gnu
if: matrix.os == 'ubuntu-20.04'
run: cross build --release --locked --manifest-path=roles/jd-server/Cargo.toml --target aarch64-unknown-linux-gnu

- name: Compile Binaries for arm-unknown-linux-gnueabi
if: matrix.os == 'ubuntu-20.04'
run: cross build --release --locked --manifest-path=roles/jd-server/Cargo.toml --target arm-unknown-linux-gnueabi

- name: Install aarch64-apple-darwin target
if: matrix.os == 'macos-latest'
Expand All @@ -136,16 +205,34 @@ jobs:
if: matrix.os == 'ubuntu-20.04'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
repo_token: ${{ secrets.ACTION_TOKEN }}
file: roles/target/release/jd_server
asset_name: jd_server-x86_64-linux-gnu
tag: ${{ github.ref }}

- name: Upload Linux aarch64 binaries to release
if: matrix.os == 'ubuntu-20.04'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.ACTION_TOKEN }}
file: roles/target/aarch64-unknown-linux-gnu/release/jd_server
asset_name: jd_server-aarch64-linux-gnu
tag: ${{ github.ref }}

- name: Upload Linux ARM binaries to release
if: matrix.os == 'ubuntu-20.04'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.ACTION_TOKEN }}
file: roles/target/arm-unknown-linux-gnueabi/release/jd_server
asset_name: jd_server-arm-linux-gnueabi
tag: ${{ github.ref }}

- name: Upload MacOS x86-64 binaries to release
if: matrix.os == 'macos-latest'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
repo_token: ${{ secrets.ACTION_TOKEN }}
file: roles/target/release/jd_server
asset_name: jd_server-x86_64-apple-darwin
tag: ${{ github.ref }}
Expand All @@ -154,7 +241,7 @@ jobs:
if: matrix.os == 'macos-latest'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
repo_token: ${{ secrets.ACTION_TOKEN }}
file: roles/target/aarch64-apple-darwin/release/jd_server
asset_name: jd_server-aarch64-apple-darwin
tag: ${{ github.ref }}
Expand All @@ -173,6 +260,17 @@ jobs:

- name: Compile Native
run: cargo build --release --locked --manifest-path=roles/mining-proxy/Cargo.toml

- name: Install cross
run: cargo install cross

- name: Compile Binaries for aarch64-unknown-linux-gnu
if: matrix.os == 'ubuntu-20.04'
run: cross build --release --locked --manifest-path=roles/mining-proxy/Cargo.toml --target aarch64-unknown-linux-gnu

- name: Compile Binaries for arm-unknown-linux-gnueabi
if: matrix.os == 'ubuntu-20.04'
run: cross build --release --locked --manifest-path=roles/mining-proxy/Cargo.toml --target arm-unknown-linux-gnueabi

- name: Install aarch64-apple-darwin target
if: matrix.os == 'macos-latest'
Expand All @@ -186,16 +284,34 @@ jobs:
if: matrix.os == 'ubuntu-20.04'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
repo_token: ${{ secrets.ACTION_TOKEN }}
file: roles/target/release/mining_proxy_sv2
asset_name: mining_proxy_sv2-x86_64-linux-gnu
tag: ${{ github.ref }}

- name: Upload Linux aarch64 binaries to release
if: matrix.os == 'ubuntu-20.04'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.ACTION_TOKEN }}
file: roles/target/aarch64-unknown-linux-gnu/release/mining_proxy_sv2
asset_name: mining_proxy_sv2-aarch64-linux-gnu
tag: ${{ github.ref }}

- name: Upload Linux ARM binaries to release
if: matrix.os == 'ubuntu-20.04'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.ACTION_TOKEN }}
file: roles/target/arm-unknown-linux-gnueabi/release/mining_proxy_sv2
asset_name: mining_proxy_sv2-arm-linux-gnueabi
tag: ${{ github.ref }}

- name: Upload MacOS x86-64 binaries to release
if: matrix.os == 'macos-latest'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
repo_token: ${{ secrets.ACTION_TOKEN }}
file: roles/target/release/mining_proxy_sv2
asset_name: mining_proxy_sv2-x86_64-apple-darwin
tag: ${{ github.ref }}
Expand All @@ -204,7 +320,7 @@ jobs:
if: matrix.os == 'macos-latest'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
repo_token: ${{ secrets.ACTION_TOKEN }}
file: roles/target/aarch64-apple-darwin/release/mining_proxy_sv2
asset_name: mining_proxy_sv2-aarch64-apple-darwin
tag: ${{ github.ref }}
Expand All @@ -223,6 +339,17 @@ jobs:

- name: Compile Native
run: cargo build --release --locked --manifest-path=roles/translator/Cargo.toml

- name: Install cross
run: cargo install cross

- name: Compile Binaries for aarch64-unknown-linux-gnu
if: matrix.os == 'ubuntu-20.04'
run: cross build --release --locked --manifest-path=roles/translator/Cargo.toml --target aarch64-unknown-linux-gnu

- name: Compile Binaries for arm-unknown-linux-gnueabi
if: matrix.os == 'ubuntu-20.04'
run: cross build --release --locked --manifest-path=roles/translator/Cargo.toml --target arm-unknown-linux-gnueabi

- name: Install aarch64-apple-darwin target
if: matrix.os == 'macos-latest'
Expand All @@ -236,16 +363,34 @@ jobs:
if: matrix.os == 'ubuntu-20.04'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
repo_token: ${{ secrets.ACTION_TOKEN }}
file: roles/target/release/translator_sv2
asset_name: translator_sv2-x86_64-linux-gnu
tag: ${{ github.ref }}

- name: Upload Linux aarch64 binaries to release
if: matrix.os == 'ubuntu-20.04'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.ACTION_TOKEN }}
file: roles/target/aarch64-unknown-linux-gnu/release/translator_sv2
asset_name: translator_sv2-aarch64-linux-gnu
tag: ${{ github.ref }}

- name: Upload Linux ARM binaries to release
if: matrix.os == 'ubuntu-20.04'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.ACTION_TOKEN }}
file: roles/target/arm-unknown-linux-gnueabi/release/translator_sv2
asset_name: translator_sv2-arm-linux-gnueabi
tag: ${{ github.ref }}

- name: Upload MacOS x86-64 binaries to release
if: matrix.os == 'macos-latest'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
repo_token: ${{ secrets.ACTION_TOKEN }}
file: roles/target/release/translator_sv2
asset_name: translator_sv2-x86_64-apple-darwin
tag: ${{ github.ref }}
Expand All @@ -254,7 +399,7 @@ jobs:
if: matrix.os == 'macos-latest'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
repo_token: ${{ secrets.ACTION_TOKEN }}
file: roles/target/aarch64-apple-darwin/release/translator_sv2
asset_name: translator_sv2-aarch64-apple-darwin
tag: ${{ github.ref }}
tag: ${{ github.ref }}
Loading

0 comments on commit a9bf9b3

Please sign in to comment.