forked from hyperledger/fabric
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into ed25519-support
Merged because some integration-test parameters, like CouchDB version, were outdated. I took the opportunity to resolve some conflicts with main. Signed-off-by: Johann Westphall <johannwestphall@gmail.com>
- Loading branch information
Showing
1,798 changed files
with
124,736 additions
and
151,721 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
# Copyright the Hyperledger Fabric contributors. All rights reserved. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
name: Release | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
release: | ||
description: 'Fabric Release, e.g. 2.4.7' | ||
required: true | ||
type: string | ||
two_digit_release: | ||
description: 'Fabric Two Digit Release, e.g. 2.4' | ||
required: true | ||
type: string | ||
commit_hash: | ||
description: 'Commit hash, e.g. df9c661a192f8cf11376d9d643a0021f1a76c34b' | ||
required: true | ||
type: string | ||
|
||
env: | ||
GO_VER: 1.18.7 | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build-binaries: | ||
name: Build Fabric Binaries | ||
strategy: | ||
matrix: | ||
include: | ||
- image: ubuntu-20.04 | ||
target: linux | ||
arch: amd64 | ||
- image: macos-11 | ||
target: darwin | ||
arch: amd64 | ||
- image: windows-2022 | ||
target: windows | ||
arch: amd64 | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: ${{ env.GO_VER }} | ||
- name: Checkout Fabric Code | ||
uses: actions/checkout@v3 | ||
- name: Compile Binary and Create Tarball | ||
run: ./ci/scripts/create_binary_package.sh | ||
env: | ||
TARGET: ${{ matrix.target }}-${{ matrix.arch }} | ||
RELEASE: ${{ inputs.release }} | ||
- name: Publish Release Artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: hyperledger-fabric-${{ matrix.target }}-${{ matrix.arch }}-${{ inputs.release }}.tar.gz | ||
path: release/${{ matrix.target }}-${{ matrix.arch }}/hyperledger-fabric-${{ matrix.target }}-${{ matrix.arch }}-${{ inputs.release }}.tar.gz | ||
build-and-push-docker-images: | ||
name: Build and Push Fabric Docker Images | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Run APT Clean | ||
run: sudo apt clean | ||
- name: Run Apt Update | ||
run: sudo apt update | ||
- name: Install Dependencies | ||
run: sudo apt install -y gcc haveged libtool make | ||
- name: Install Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: ${{ env.GO_VER }} | ||
- name: Checkout Fabric Code | ||
uses: actions/checkout@v3 | ||
- name: Publish Docker Images | ||
run: ./ci/scripts/publish_docker.sh | ||
env: | ||
RELEASE: ${{ inputs.release }} | ||
TWO_DIGIT_RELEASE: ${{ inputs.two_digit_release }} | ||
DOCKER_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }} | ||
DOCKER_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | ||
create-release: | ||
name: Create GitHub Release | ||
needs: [ build-binaries, build-and-push-docker-images ] | ||
runs-on: ubuntu-20.04 | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: Checkout Fabric Code | ||
uses: actions/checkout@v3 | ||
- name: Download Artifacts | ||
id: download | ||
uses: actions/download-artifact@v3 | ||
- name: Release Fabric Version | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
artifacts: "*.tar.gz/*.tar.gz" | ||
bodyFile: release_notes/v${{ inputs.release }}.md | ||
commit: ${{ inputs.commit_hash }} | ||
tag: v${{ inputs.release }} | ||
token: ${{ secrets.GITHUB_TOKEN }} |
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 was deleted.
Oops, something went wrong.
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,68 @@ | ||
# Copyright the Hyperledger Fabric contributors. All rights reserved. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
name: Verify Build | ||
on: | ||
push: | ||
branches: ["**"] | ||
pull_request: | ||
branches: ["**"] | ||
workflow_dispatch: | ||
|
||
env: | ||
GOPATH: /opt/go | ||
PATH: /opt/go/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin | ||
GO_VER: 1.18 | ||
|
||
permissions: | ||
contents: read # to fetch code (actions/checkout) | ||
|
||
jobs: | ||
basic-checks: | ||
name: Basic Checks | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/setup-go@v3 | ||
name: Install Go | ||
with: | ||
go-version: ${{ env.GO_VER }} | ||
- uses: actions/checkout@v3 | ||
name: Checkout Fabric Code | ||
with: | ||
fetch-depth: 0 | ||
- run: make basic-checks | ||
name: Run Basic Checks | ||
unit-tests: | ||
name: Unit Tests | ||
needs: basic-checks | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/setup-go@v3 | ||
name: Install Go | ||
with: | ||
go-version: ${{ env.GO_VER }} | ||
- uses: actions/checkout@v3 | ||
name: Checkout Fabric Code | ||
- run: ci/scripts/setup_hsm.sh | ||
name: Install SoftHSM | ||
- run: make unit-test | ||
name: Run Unit Tests | ||
integration-tests: | ||
name: Integration Tests | ||
needs: basic-checks | ||
strategy: | ||
matrix: | ||
INTEGRATION_TEST_SUITE: ["raft","pvtdata","ledger","lifecycle","e2e","discovery gossip devmode pluggable","gateway idemix pkcs11 configtx configtxlator","sbe nwo msp"] | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/setup-go@v3 | ||
name: Install Go | ||
with: | ||
go-version: ${{ env.GO_VER }} | ||
- uses: actions/checkout@v3 | ||
name: Checkout Fabric Code | ||
- run: ci/scripts/setup_hsm.sh | ||
name: Install SoftHSM | ||
- run: make integration-test INTEGRATION_TEST_SUITE="${{matrix.INTEGRATION_TEST_SUITE}}" | ||
name: Run Integration Tests |
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
Oops, something went wrong.