diff --git a/.github/workflows/build-ampd-release.yaml b/.github/workflows/build-ampd-release.yaml index d1de5e86c..82d95c5e5 100644 --- a/.github/workflows/build-ampd-release.yaml +++ b/.github/workflows/build-ampd-release.yaml @@ -41,6 +41,9 @@ jobs: matrix: os: [ ubuntu-22.04, macos-12 ] arch: [ amd64, arm64 ] + exclude: + - os: ubuntu-22.04 + arch: arm64 permissions: contents: write @@ -81,21 +84,22 @@ 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: @@ -104,22 +108,14 @@ jobs: run: | OS="linux" ARCH="${{ matrix.arch }}" - 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 + + 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" - name: Test Binary Format working-directory: ./ampdbin @@ -188,7 +184,6 @@ 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: