Skip to content

Commit

Permalink
Merge pull request #90 from maticnetwork/DVT-81-alternative-with-comp…
Browse files Browse the repository at this point in the history
…ression

Compressed Binary for CI and aarch64-unknown-linux-gnu Target
  • Loading branch information
praetoriansentry authored Sep 30, 2022
2 parents 062d946 + 3115716 commit eff6270
Showing 1 changed file with 28 additions and 4 deletions.
32 changes: 28 additions & 4 deletions .github/workflows/releaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ on:
branches-ignore:
- '**'
tags:
- 'v*.*.*'
# to be used by fork patch-releases ^^
- 'v*.*.*-*'
- '*'

jobs:

Expand Down Expand Up @@ -50,9 +48,32 @@ jobs:
name: data-avail-linux-amd64-binary
path: target/release/data-avail-linux-amd64

binary_linux_aarch64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: install cargo deps and build avail
shell: bash
run: |
curl https://sh.rustup.rs -sSf | sh -s -- -y
source "$HOME/.cargo/env"
rustup target add aarch64-unknown-linux-gnu
sudo apt-get update && sudo apt-get install -y musl-tools clang gcc-aarch64-linux-gnu g++-aarch64-linux-gnu libc6-dev libc6-dev-arm64-cross
env BINDGEN_EXTRA_CLANG_ARGS='--sysroot /usr/aarch64-linux-gnu' CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=/usr/bin/aarch64-linux-gnu-gcc cargo build --release --target=aarch64-unknown-linux-gnu -p data-avail
mv target/aarch64-unknown-linux-gnu/release/data-avail target/aarch64-unknown-linux-gnu/release/data-avail-linux-aarch64
pushd target/aarch64-unknown-linux-gnu/release/
tar czf data-avail-linux-aarch64.tar.gz data-avail-linux-aarch64
popd
- uses: actions/upload-artifact@v2
with:
name: data-avail-linux-aarch64-tar
path: target/aarch64-unknown-linux-gnu/release/data-avail-linux-aarch64.tar.gz


# compile all binaries from previous jobs into single release
binary_publish:
needs: [binary_centos7_amd64, binary_linux_amd64]
needs: [binary_centos7_amd64, binary_linux_amd64, binary_linux_aarch64]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v2
Expand All @@ -61,6 +82,9 @@ jobs:
- uses: actions/download-artifact@v2
with:
name: data-avail-linux-amd64-binary
- uses: actions/download-artifact@v2
with:
name: data-avail-linux-aarch64-tar
- name: Prepare
id: prepare
run: |
Expand Down

0 comments on commit eff6270

Please sign in to comment.