Skip to content

Commit

Permalink
Revert "ci: remove linux-arm64 support for ampd (#629)"
Browse files Browse the repository at this point in the history
This reverts commit 2b2aa47.
  • Loading branch information
cgorenflo committed Sep 19, 2024
1 parent 38f78ba commit e73069b
Showing 1 changed file with 21 additions and 16 deletions.
37 changes: 21 additions & 16 deletions .github/workflows/build-ampd-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ jobs:
matrix:
os: [ ubuntu-22.04, macos-12 ]
arch: [ amd64, arm64 ]
exclude:
- os: ubuntu-22.04
arch: arm64

permissions:
contents: write
Expand Down Expand Up @@ -84,22 +81,21 @@ jobs:
run: |
OS="darwin"
ARCH="${{ matrix.arch }}"
brew install protobuf
if [ "$ARCH" == "arm64" ]
then
brew install protobuf
rustup target add aarch64-apple-darwin
cargo build --release --target aarch64-apple-darwin
mkdir ampdbin
mv "/Users/runner/work/axelar-amplifier/axelar-amplifier/target/aarch64-apple-darwin/release/ampd" "./ampdbin/ampd-$OS-$ARCH-$SEMVER"
gpg --armor --detach-sign "./ampdbin/ampd-$OS-$ARCH-$SEMVER"
else
brew install protobuf
cargo build --release
mkdir ampdbin
mv "/Users/runner/work/axelar-amplifier/axelar-amplifier/target/release/ampd" "./ampdbin/ampd-$OS-$ARCH-$SEMVER"
gpg --armor --detach-sign "./ampdbin/ampd-$OS-$ARCH-$SEMVER"
fi
gpg --armor --detach-sign "./ampdbin/ampd-$OS-$ARCH-$SEMVER"
- name: build and sign linux binaries
env:
Expand All @@ -108,14 +104,22 @@ jobs:
run: |
OS="linux"
ARCH="${{ matrix.arch }}"
sudo apt-get install libssl-dev protobuf-compiler
cargo build --release
mkdir ampdbin
mv "/home/runner/work/axelar-amplifier/axelar-amplifier/target/release/ampd" "./ampdbin/ampd-$OS-$ARCH-$SEMVER"
gpg --armor --detach-sign "./ampdbin/ampd-$OS-$ARCH-$SEMVER"
if [ "$ARCH" == "arm64" ]
then
sudo apt-get install protobuf-compiler gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
rustup target add aarch64-unknown-linux-gnu
export CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc
cargo build --release --target aarch64-unknown-linux-gnu
mkdir ampdbin
mv "/home/runner/work/axelar-amplifier/axelar-amplifier/target/aarch64-unknown-linux-gnu/release/ampd" "./ampdbin/ampd-$OS-$ARCH-$SEMVER"
gpg --armor --detach-sign "./ampdbin/ampd-$OS-$ARCH-$SEMVER"
else
sudo apt-get install protobuf-compiler
cargo build --release
mkdir ampdbin
mv "/home/runner/work/axelar-amplifier/axelar-amplifier/target/release/ampd" "./ampdbin/ampd-$OS-$ARCH-$SEMVER"
gpg --armor --detach-sign "./ampdbin/ampd-$OS-$ARCH-$SEMVER"
fi
- name: Test Binary Format
working-directory: ./ampdbin
Expand Down Expand Up @@ -184,6 +188,7 @@ jobs:
cp -R ./ampdbin/. "./${version}/"
echo "release-dir=./${version}" >> $GITHUB_OUTPUT
echo "r2-destination-dir=./releases/ampd/" >> $GITHUB_OUTPUT
- uses: ryand56/r2-upload-action@latest
with:
Expand Down

0 comments on commit e73069b

Please sign in to comment.