From cb42a1929661807ac1546deeb3801c5fb8317c55 Mon Sep 17 00:00:00 2001 From: eanzhao Date: Wed, 17 Jul 2024 18:59:41 +0800 Subject: [PATCH] Add github action `build` and replace related badges on README file. --- .github/workflows/build.yml | 34 ++++++++++++++++++++++++++++++++++ README.md | 8 ++++---- 2 files changed, 38 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000000..6b203af7a4 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,34 @@ +name: Build +on: + push: + branches: + - dev + - master + +env: + DOTNET_INSTALL_DIR: "./.dotnet" + Solution_Name: AElf.All.sln + Service_Name: AELF + +jobs: + test: + runs-on: ubuntu-latest + permissions: + pull-requests: write + contents: write + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup dotnet + uses: actions/setup-dotnet@v4 + with: + dotnet-version: '6.0' + + - name: Download AElf build tools + run: bash scripts/download_binary.sh + + - name: Install Protobuf + run: bash scripts/install_protobuf.sh + + - name: Build Solution + run: bash scripts/build.sh diff --git a/README.md b/README.md index 616aa7f841..80241b374c 100644 --- a/README.md +++ b/README.md @@ -7,10 +7,10 @@ [![Twitter Follow](https://img.shields.io/twitter/follow/aelfblockchain.svg?label=%40aelfblockchain&style=social)](https://twitter.com/aelfblockchain) [![Telegram](https://badgen.net/badge/telegram/join/blue?icon=telegram)](https://t.me/aelfdeveloper) - BRANCH | AZURE PIPELINES | TESTS | CODE COVERAGE - ------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ - MASTER | [![Build Status](https://dev.azure.com/AElfProject/AElf/_apis/build/status/AElfProject.AElf?branchName=master)](https://dev.azure.com/AElfProject/AElf/_build/latest?definitionId=1&branchName=master) | [![Test Status](https://img.shields.io/azure-devops/tests/AElfProject/AElf/1/master)](https://dev.azure.com/AElfProject/AElf/_build/latest?definitionId=1&branchName=master) | [![codecov](https://codecov.io/gh/AElfProject/AElf/branch/master/graph/badge.svg)](https://codecov.io/gh/AElfProject/AElf) - DEV | [![Build Status](https://dev.azure.com/AElfProject/AElf/_apis/build/status/AElfProject.AElf?branchName=dev)](https://dev.azure.com/AElfProject/AElf/_build/latest?definitionId=1&branchName=dev) | [![Test Status](https://img.shields.io/azure-devops/tests/AElfProject/AElf/1/dev)](https://dev.azure.com/AElfProject/AElf/_build/latest?definitionId=1&branchName=dev) | [![codecov](https://codecov.io/gh/AElfProject/AElf/branch/dev/graph/badge.svg)](https://codecov.io/gh/AElfProject/AElf) + BRANCH | GITHUB ACTIONS BUILD | TESTS | CODE COVERAGE + ------ |-----------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| ------------------------------------------------------------ + MASTER | ![GitHub Workflow Build Status](https://img.shields.io/github/actions/workflow/status/eanzhao/AElf/build.yml?branch=master) | [![Test Status](https://img.shields.io/azure-devops/tests/AElfProject/AElf/1/master)](https://dev.azure.com/AElfProject/AElf/_build/latest?definitionId=1&branchName=master) | [![codecov](https://codecov.io/gh/AElfProject/AElf/branch/master/graph/badge.svg)](https://codecov.io/gh/AElfProject/AElf) + DEV | ![GitHub Workflow Build Status](https://img.shields.io/github/actions/workflow/status/eanzhao/AElf/build.yml?branch=dev) | [![Test Status](https://img.shields.io/azure-devops/tests/AElfProject/AElf/1/dev)](https://dev.azure.com/AElfProject/AElf/_build/latest?definitionId=1&branchName=dev) | [![codecov](https://codecov.io/gh/AElfProject/AElf/branch/dev/graph/badge.svg)](https://codecov.io/gh/AElfProject/AElf) Welcome to AElf's official GitHub repo !