-
Notifications
You must be signed in to change notification settings - Fork 5
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 yarkin/ship_reconnection
- Loading branch information
Showing
26 changed files
with
1,137 additions
and
172 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,18 @@ | ||
{ | ||
"leap-dev":{ | ||
"target":"4", | ||
"prerelease":false | ||
}, | ||
"leap":{ | ||
"target":"4", | ||
"prerelease":false | ||
}, | ||
"cdt":{ | ||
"target":"3.1.0", | ||
"prerelease":false | ||
}, | ||
"eos-evm-contract":{ | ||
"target":"main", | ||
"prerelease":false | ||
} | ||
} |
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,5 @@ | ||
{ | ||
"ubuntu22": { | ||
"dockerfile": ".cicd/platforms/ubuntu22.Dockerfile" | ||
} | ||
} |
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,11 @@ | ||
FROM ubuntu:jammy | ||
ENV TZ="America/New_York" | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
RUN apt-get update && apt-get upgrade -y && \ | ||
apt-get install -y build-essential \ | ||
cmake \ | ||
gcc-11 \ | ||
g++-11 \ | ||
git \ | ||
python3-pip | ||
RUN pip install -v "conan==1.60.2" |
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,26 @@ | ||
#!/bin/bash | ||
set -eo pipefail | ||
|
||
# print and run a command | ||
function ee() | ||
{ | ||
echo "$ $*" | ||
eval "$@" | ||
} | ||
|
||
# debug code | ||
echo "CC='${CC}'" | ||
echo "CXX='${CXX}'" | ||
ee cmake --version | ||
|
||
# build | ||
ee mkdir build | ||
ee pushd build | ||
ee cmake .. | ||
ee make -j "$(nproc)" | ||
|
||
# pack | ||
ee popd | ||
ee 'tar -czf build.tar.gz --exclude="*.o" build/*' | ||
|
||
echo "Done! - ${0##*/}" |
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,53 @@ | ||
# EOS EVM Node CI | ||
This GitHub Actions workflow builds eos-evm-node and eos-evm-rpc. | ||
|
||
### Index | ||
1. [Triggers](#triggers) | ||
1. [Inputs](#inputs) | ||
1. [Steps](#steps) | ||
1. [Outputs](#outputs) | ||
1. [See Also](#see-also) | ||
|
||
## Triggers | ||
This GitHub action will run under the following circumstances: | ||
1. When code is pushed. | ||
1. Workflow dispatch event, a manual CI run, which can be triggered by the "Workflow Dispatch" button in the Actions tab of the GitHub repository, among other means. | ||
|
||
## Inputs | ||
The inputs for this GitHub action are: | ||
1. `GITHUB_TOKEN` - a GitHub Actions intrinsic used to access the repository and other public resources. | ||
1. `TRUSTEVM_CI_APP_ID` - the app ID of the `trustevm-ci-submodule-checkout` GitHub App. | ||
1. `TRUSTEVM_CI_APP_KEY` - the private key to the `trustevm-ci-submodule-checkout` GitHub App. | ||
1. `upload-artifacts` - a boolean input that specifies whether or not to upload the artifacts of the build. The default value is `false`. This can be overridden in manual CI runs. | ||
|
||
These inputs are used in various steps of the workflow to perform actions such as authentication, downloading artifacts, configuring the build, and uploading artifacts. | ||
|
||
## Steps | ||
This workflow performs the following steps: | ||
1. Attach Documentation | ||
1. Checkout the repo with no submodules. | ||
1. Attach an annotation to the GitHub Actions build summary page containing CI documentation. | ||
1. EOS EVM Node Build | ||
1. Authenticate to the `trustevm-ci-submodule-checkout` GitHub app using the [AntelopeIO/github-app-token-action](https://github.com/AntelopeIO/github-app-token-action) action to obtain an ephemeral token. | ||
1. Checkout the repo and submodules using the ephemeral token. | ||
1. Build eos-evm-node and eos-evm-rpc using `cmake` and `make`. | ||
1. Upload the build folder to GitHub Actions if the `upload-artifacts` input is set to `true`. | ||
|
||
## Outputs | ||
This workflow produces the following outputs: | ||
1. Build Artifacts - `build.tar.gz` containing the built artifacts of eos-evm-node and eos-evm-rpc, if the `upload-artifacts` input is set to `true`. | ||
|
||
> 💾️ Build artifacts are only attached on-demand for this pipeline because they are >117 MB each, but we only get 2 GB of cumulative artifact storage in GitHub Actions while eos-evm is a private repo. Obtain artifacts by performing a manual build with `upload-artifacts` set to `true`. | ||
## See Also | ||
- [github-app-token-action](https://github.com/AntelopeIO/github-app-token-action) GitHub action | ||
- [EOS EVM Documentation](../../README.md) | ||
|
||
For assistance with the CI system, please open an issue in this repo or reach out in the `#help-automation` channel via IM. | ||
|
||
*** | ||
**_Legal notice_** | ||
This document was generated in collaboration with ChatGPT from OpenAI, a machine learning algorithm or weak artificial intelligence (AI). At the time of this writing, the [OpenAI terms of service agreement](https://openai.com/terms) §3.a states: | ||
> Your Content. You may provide input to the Services (“Input”), and receive output generated and returned by the Services based on the Input (“Output”). Input and Output are collectively “Content.” As between the parties and to the extent permitted by applicable law, you own all Input, and subject to your compliance with these Terms, OpenAI hereby assigns to you all its right, title and interest in and to Output. | ||
This notice is required in some countries. |
Oops, something went wrong.