-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2,582 changed files
with
585,222 additions
and
231,408 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,17 @@ | ||
[run] | ||
branch=True | ||
relative_files=True | ||
source= | ||
ethgreen | ||
tests | ||
concurrency=multiprocessing | ||
parallel=True | ||
|
||
[report] | ||
precision = 1 | ||
exclude_lines = | ||
pragma: no cover | ||
abc\.abstractmethod | ||
typing\.overload | ||
^\s*\.\.\.\s*$ | ||
if typing.TYPE_CHECKING: |
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 |
---|---|---|
@@ -1 +1,9 @@ | ||
.github/linters/.flake8 | ||
[flake8] | ||
max-line-length = 120 | ||
exclude = ./typings/**/* | ||
ignore = E203,W503 | ||
per-file-ignores = | ||
tests/util/build_network_protocol_files.py:F405 | ||
tests/util/test_network_protocol_files.py:F405 | ||
tests/util/test_network_protocol_json.py:F405 | ||
tests/util/protocol_messages_json.py:E501 |
Empty file.
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
contact_links: | ||
- about: Ask a question or request support here | ||
name: Ask for Support | ||
url: >- | ||
https://github.com/ethgreen/ethgreen-blockchain/discussions/new?category=support | ||
- about: Request a new feature or idea here | ||
name: Make a Request | ||
url: >- | ||
https://github.com/ethgreen/ethgreen-blockchain/discussions/new?category=ideas | ||
- about: Get support on the Ethgreen Discord chat channels. | ||
name: Join the Discord.io support chat | ||
url: 'https://discord.gg/TgJyxsEFFc' | ||
contact_links: | ||
- about: Ask a question or request support here | ||
name: Ask for Support | ||
url: >- | ||
https://github.com/ethgreen/ethgreen-blockchain/discussions/new?category=support | ||
- about: Request a new feature or idea here | ||
name: Make a Request | ||
url: >- | ||
https://github.com/ethgreen/ethgreen-blockchain/discussions/new?category=ideas | ||
- about: Get support on the ETHgreen Discord chat channels. | ||
name: Join the Discord.io support chat | ||
url: 'https://discord.gg/TgJyxsEFFc' |
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,40 @@ | ||
name: "Install ethgreen-blockchain" | ||
|
||
description: "Run the platform appropriate installer script." | ||
|
||
inputs: | ||
python-version: | ||
description: "Value to be set for INSTALL_PYTHON_VERSION." | ||
required: false | ||
default: "" | ||
development: | ||
description: "Install development dependencies." | ||
required: false | ||
default: "" | ||
automated: | ||
description: "Automated install, no questions." | ||
required: false | ||
default: "true" | ||
command-prefix: | ||
description: "Text to place before the command such as `arch -arm64` for non-native macOS runners." | ||
required: false | ||
default: "" | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Run install script (macOS, Ubuntu) | ||
if: runner.os == 'macos' || runner.os == 'linux' | ||
shell: bash | ||
env: | ||
INSTALL_PYTHON_VERSION: ${{ inputs.python-version }} | ||
run: | | ||
${{ inputs.command-prefix }} sh install.sh ${{ inputs.development && '-d' || '' }} ${{ inputs.automated == 'true' && '-a' || '' }} | ||
- name: Run install script (Windows) | ||
if: runner.os == 'windows' | ||
shell: pwsh | ||
env: | ||
INSTALL_PYTHON_VERSION: ${{ inputs.python-version }} | ||
run: | | ||
${{ inputs.command-prefix }} ./Install.ps1 ${{ inputs.development && '-d' || '' }} |
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
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,167 @@ | ||
name: 📦🚀 Build Installer - Linux DEB ARM64 | ||
|
||
on: | ||
#push: | ||
# branches: | ||
# - main | ||
# tags: | ||
# - '**' | ||
#pull_request: | ||
# branches: | ||
# - '**' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
name: Linux arm64 DEB Installer | ||
runs-on: [Linux, ARM64] | ||
container: chianetwork/ubuntu-18.04-builder:latest | ||
timeout-minutes: 120 | ||
strategy: | ||
fail-fast: false | ||
max-parallel: 4 | ||
matrix: | ||
python-version: [3.8] | ||
|
||
steps: | ||
- uses: Chia-Network/actions/clean-workspace@main | ||
|
||
- name: Add safe git directory | ||
uses: Chia-Network/actions/git-mark-workspace-safe@main | ||
|
||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
submodules: recursive | ||
|
||
- name: Cleanup any leftovers that exist from previous runs | ||
run: bash build_scripts/clean-runner.sh || true | ||
|
||
- name: Set Env | ||
if: github.event_name == 'release' && github.event.action == 'published' | ||
run: | | ||
PRE_RELEASE=$(jq -r '.release.prerelease' "$GITHUB_EVENT_PATH") | ||
RELEASE_TAG=$(jq -r '.release.tag_name' "$GITHUB_EVENT_PATH") | ||
echo "RELEASE=true" >>$GITHUB_ENV | ||
echo "PRE_RELEASE=$PRE_RELEASE" >>$GITHUB_ENV | ||
echo "RELEASE_TAG=$RELEASE_TAG" >>$GITHUB_ENV | ||
if [ $PRE_RELEASE = false ]; then | ||
echo "FULL_RELEASE=true" >>$GITHUB_ENV | ||
else | ||
echo "FULL_RELEASE=false" >>$GITHUB_ENV | ||
fi | ||
# Create our own venv outside of the git directory JUST for getting the ACTUAL version so that install can't break it | ||
- name: Get version number | ||
id: version_number | ||
run: | | ||
python3 -m venv ../venv | ||
. ../venv/bin/activate | ||
pip3 install setuptools_scm | ||
echo "::set-output name=ETHGREEN_INSTALLER_VERSION::$(python3 ./build_scripts/installer-version.py)" | ||
deactivate | ||
# Get the most recent release from chia-plotter-madmax | ||
- uses: actions/github-script@v6 | ||
id: 'latest-madmax' | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
result-encoding: string | ||
script: | | ||
const release = await github.rest.repos.getLatestRelease({ | ||
owner: 'Chia-Network', | ||
repo: 'chia-plotter-madmax', | ||
}); | ||
return release.data.tag_name; | ||
- name: Get latest madmax plotter | ||
run: | | ||
mkdir "$GITHUB_WORKSPACE/madmax" | ||
wget -O "$GITHUB_WORKSPACE/madmax/ethgreen_plot" https://github.com/Chia-Network/chia-plotter-madmax/releases/download/${{ steps.latest-madmax.outputs.result }}/chia_plot-${{ steps.latest-madmax.outputs.result }}-arm64 | ||
wget -O "$GITHUB_WORKSPACE/madmax/ethgreen_plot_k34" https://github.com/Chia-Network/chia-plotter-madmax/releases/download/${{ steps.latest-madmax.outputs.result }}/chia_plot_k34-${{ steps.latest-madmax.outputs.result }}-arm64 | ||
chmod +x "$GITHUB_WORKSPACE/madmax/ethgreen_plot" | ||
chmod +x "$GITHUB_WORKSPACE/madmax/ethgreen_plot_k34" | ||
# Get the most recent release from bladebit | ||
- uses: actions/github-script@v6 | ||
if: '!github.event.release.prerelease' | ||
id: 'latest-bladebit' | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
result-encoding: string | ||
script: | | ||
const release = await github.rest.repos.getLatestRelease({ | ||
owner: 'Chia-Network', | ||
repo: 'bladebit', | ||
}); | ||
return release.data.tag_name; | ||
- name: Get latest bladebit plotter | ||
if: '!github.event.release.prerelease' | ||
run: | | ||
mkdir "$GITHUB_WORKSPACE/bladebit" | ||
wget -O /tmp/bladebit.tar.gz https://github.com/Chia-Network/bladebit/releases/download/${{ steps.latest-bladebit.outputs.result }}/bladebit-${{ steps.latest-bladebit.outputs.result }}-ubuntu-arm64.tar.gz | ||
tar -xvzf /tmp/bladebit.tar.gz -C $GITHUB_WORKSPACE/bladebit | ||
chmod +x "$GITHUB_WORKSPACE/bladebit/bladebit" | ||
- name: Get latest prerelease bladebit plotter | ||
if: env.PRE_RELEASE == 'true' | ||
run: | | ||
PRERELEASE_URL=$(curl -Ls -H "Accept: application/vnd.github+json" "https://api.github.com/repos/Chia-Network/bladebit/releases" | jq -r 'map(select(.prerelease)) | first.assets[] | select(.browser_download_url | endswith("ubuntu-arm64.tar.gz")).browser_download_url') | ||
mkdir "$GITHUB_WORKSPACE/bladebit" | ||
wget -O /tmp/bladebit.tar.gz $PRERELEASE_URL | ||
tar -xvzf /tmp/bladebit.tar.gz -C $GITHUB_WORKSPACE/bladebit | ||
chmod +x "$GITHUB_WORKSPACE/bladebit/bladebit" | ||
- uses: ./.github/actions/install | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
development: true | ||
|
||
- uses: chia-network/actions/activate-venv@main | ||
|
||
- name: Prepare GUI cache | ||
id: gui-ref | ||
run: | | ||
gui_ref=$(git submodule status ethgreen-blockchain-gui | sed -e 's/^ //g' -e 's/ ethgreen-blockchain-gui.*$//g') | ||
echo "${gui_ref}" | ||
echo "::set-output name=GUI_REF::${gui_ref}" | ||
echo "rm -rf ./ethgreen-blockchain-gui" | ||
rm -rf ./ethgreen-blockchain-gui | ||
- name: Cache GUI | ||
uses: actions/cache@v3 | ||
id: cache-gui | ||
with: | ||
path: ./ethgreen-blockchain-gui | ||
key: ${{ runner.os }}-arm64-ethgreen-blockchain-gui-${{ steps.gui-ref.outputs.GUI_REF }} | ||
|
||
- if: steps.cache-gui.outputs.cache-hit != 'true' | ||
name: Build GUI | ||
continue-on-error: false | ||
run: | | ||
cd ./build_scripts | ||
bash build_linux_deb-1-gui.sh | ||
- name: Build arm64 .deb package | ||
env: | ||
ETHGREEN_INSTALLER_VERSION: ${{ steps.version_number.outputs.ETHGREEN_INSTALLER_VERSION }} | ||
run: | | ||
ldd --version | ||
cd ./build_scripts | ||
sh build_linux_deb-2-installer.sh arm64 | ||
- name: Upload Linux artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ethgreen-installers-linux-deb-arm64 | ||
path: ${{ github.workspace }}/build_scripts/final_installer/ | ||
|
||
- name: Clean up on self hosted runner | ||
run: | | ||
sudo rm -rf build_scripts/final_installer | ||
- name: Remove working files to exclude from cache | ||
run: | | ||
rm -rf ./ethgreen-blockchain-gui/packages/gui/daemon |
Oops, something went wrong.