From 2d461c96052fdfce991d6453e431d95600401f28 Mon Sep 17 00:00:00 2001 From: Frank Bell Date: Sun, 14 Apr 2024 15:39:58 +0100 Subject: [PATCH] build(release): add aarch64 --- .github/workflows/release.yml | 52 ++--------------------------------- 1 file changed, 3 insertions(+), 49 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 31931bf5..31334e79 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,51 +13,6 @@ on: - 'frank/build-macos' jobs: - # build-node-for-linux: - # runs-on: ubuntu-22.04 - # permissions: - # contents: write - # strategy: - # matrix: - # cpu: [ "", "skylake" ] - # env: - # RUSTFLAGS: "-C target-cpu=${{ matrix.cpu }}" - # name: "pop-node${{ matrix.cpu != '' && format('-{0}', matrix.cpu) || '' }}" - # steps: - # - name: Checkout - # uses: actions/checkout@v4 - # with: - # fetch-depth: 0 - # ref: ${{ github.event.inputs.ref }} - # - # - name: Install packages - # run: | - # sudo apt-get install -y protobuf-compiler - # protoc --version - # - # - name: Build node - # run: cargo build --profile=production -p pop-node - # - # - name: Save binary - # run: | - # mkdir -p build - # cp target/production/pop-node build/${{ env.name }} - # sha256sum build/${{ env.name }} > build/${{ env.name }}.sha256 - # - # - name: Upload binary - # uses: actions/upload-artifact@v3 - # with: - # name: binaries - # path: build - # - # - name: Add binary to release - # if: github.event_name == 'release' - # uses: softprops/action-gh-release@v1 - # with: - # files: | - # build/${{ env.name }} - # build/${{ env.name }}.sha256 - build-node: runs-on: ${{ matrix.platform.os }} permissions: @@ -66,8 +21,8 @@ jobs: matrix: platform: # Linux - # - os: ubuntu-22.04 - # target: aarch64-unknown-linux-gnu + - os: ubuntu-22.04 + target: aarch64-unknown-linux-gnu - os: ubuntu-22.04 target: x86_64-unknown-linux-gnu - os: ubuntu-22.04 @@ -92,9 +47,8 @@ jobs: - name: Install packages (Linux) if: contains(matrix.platform.target, 'linux') run: | - sudo apt-get install -y protobuf-compiler + sudo apt-get install -y protobuf-compiler ${{ contains(matrix.platform.target, 'aarch64') && 'crossbuild-essential-arm64' || '' }} protoc --version - # gcc-aarch64-linux-gnu - name: Install packages (macOS) if: contains(matrix.platform.target, 'apple')