-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes to CI build workflows for dev, staging and production pipelines…
… into feature/evm (#1906) * Enable aarch64-apple-darwin builds (#1893) (#1894) * Build pipeline for building on arm64 macOS host architecture. Included CI build workflow for building the arm64 binaries * Rename to aarch64-apple-darwin to resolve build dependency bug * Amended markdown documentation (cherry picked from commit 29e10be) * CI workflow fixes for dev, staging and production pipelines * Fix naming bug * Removed publishing to dockerhub pipeline in build staging workflow, and renamed "mac" to "osx" * Added workflow to push arm build image into Dockerhub. Rename docker tag convention to differentiate arm and x64 build images. * Fix docker tags * Reverting changes to pushing only linux-x64 into dockerhub registry. * Include image layer to install rust dependencies * Install protobuf-compiler pkg dep * bug fixes * Fix bug in pkg_local_ensure_osx_sysroot function that does not exit out of entered dir if the package exists. Include new gnu-tar support for macos in platform_init function to support tar --transform on macos * Install target toolchains in dockerfiles * Fix target toolchain for linux-arm docker build * Resolve rustc toolchain bug * Removed optional label in proto3 syntax to fix build error * Fix _tar func in make.sh to pass all args to gnu-tar, and fix docker release build workflow to only push x64 linux to docker registry. * Re-order build targets to select major dev envs first. * Fix merge errors * Revert to feature/evm branch version * Reverting eth.proto version to feature/evm version t Please enter the commit message for your changes. Lines starting
- Loading branch information
Showing
15 changed files
with
517 additions
and
215 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
name: Build - Staging | ||
|
||
on: | ||
workflow_dispatch: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
linux-x64: | ||
runs-on: ubuntu-latest | ||
if: startsWith(github.ref, 'refs/tags/') | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Populate environment | ||
run: GIT_VERSION=1 ./make.sh ci-export-vars | ||
|
||
- name: Build and package | ||
run: GIT_VERSION=1 DOCKERFILE="x86_64-pc-linux-gnu-clang" TARGET="x86_64-pc-linux-gnu" ./make.sh docker-release | ||
|
||
- name: Publish artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: defichain-${{ env.BUILD_VERSION }}-x86_64-pc-linux-gnu | ||
path: ./build/defichain-${{ env.BUILD_VERSION }}-x86_64-pc-linux-gnu.tar.gz | ||
|
||
linux-armhf: | ||
runs-on: ubuntu-latest | ||
if: startsWith(github.ref, 'refs/tags/') | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Populate environment | ||
run: GIT_VERSION=1 ./make.sh ci-export-vars | ||
|
||
- name: Build and package | ||
run: GIT_VERSION=1 TARGET="arm-linux-gnueabihf" ./make.sh docker-release | ||
|
||
- name: Publish artifact - arm-linux-gnueabihf | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: defichain-${{ env.BUILD_VERSION }}-arm-linux-gnueabihf | ||
path: ./build/defichain-${{ env.BUILD_VERSION }}-arm-linux-gnueabihf.tar.gz | ||
|
||
linux-aarch64: | ||
runs-on: ubuntu-latest | ||
if: startsWith(github.ref, 'refs/tags/') | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Populate environment | ||
run: GIT_VERSION=1 ./make.sh ci-export-vars | ||
|
||
- name: Build and package | ||
run: GIT_VERSION=1 TARGET="aarch64-linux-gnu" ./make.sh docker-release | ||
|
||
- name: Publish artifact - aarch64-linux-gnu | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: defichain-${{ env.BUILD_VERSION }}-aarch64-linux-gnu | ||
path: ./build/defichain-${{ env.BUILD_VERSION }}-aarch64-linux-gnu.tar.gz | ||
|
||
win-x64: | ||
runs-on: ubuntu-latest | ||
if: startsWith(github.ref, 'refs/tags/') | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Populate environment | ||
run: GIT_VERSION=1 ./make.sh ci-export-vars | ||
|
||
- name: Build and package | ||
run: GIT_VERSION=1 TARGET="x86_64-w64-mingw32" ./make.sh docker-release | ||
|
||
- name: Publish artifact - x86_64-w64-mingw32 | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: defichain-${{ env.BUILD_VERSION }}-x86_64-w64-mingw32 | ||
path: ./build/defichain-${{ env.BUILD_VERSION }}-x86_64-w64-mingw32.tar.gz | ||
|
||
osx-x64: | ||
runs-on: ubuntu-latest | ||
if: startsWith(github.ref, 'refs/tags/') | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Populate environment | ||
run: GIT_VERSION=1 ./make.sh ci-export-vars | ||
|
||
- name: Build and package | ||
run: GIT_VERSION=1 TARGET="x86_64-apple-darwin" ./make.sh docker-release | ||
|
||
- name: Publish artifact - x86_64-apple-darwin | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: defichain-${{ env.BUILD_VERSION }}-x86_64-apple-darwin | ||
path: ./build/defichain-${{ env.BUILD_VERSION }}-x86_64-apple-darwin.tar.gz | ||
|
||
osx-aarch64: | ||
runs-on: ubuntu-latest | ||
if: startsWith(github.ref, 'refs/tags/') | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Populate environment | ||
run: GIT_VERSION=1 ./make.sh ci-export-vars | ||
|
||
- name: Build and package | ||
run: GIT_VERSION=1 TARGET="aarch64-apple-darwin" ./make.sh docker-release | ||
|
||
- name: Publish artifact - aarch64-apple-darwin | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: defichain-${{ env.BUILD_VERSION }}-aarch64-apple-darwin | ||
path: ./build/defichain-${{ env.BUILD_VERSION }}-aarch64-apple-darwin.tar.gz |
Oops, something went wrong.