Skip to content

Commit

Permalink
Update to Chia 1.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ethgreen committed Nov 20, 2022
1 parent e3200f3 commit adf0a77
Show file tree
Hide file tree
Showing 2,582 changed files with 585,222 additions and 231,408 deletions.
17 changes: 17 additions & 0 deletions .coveragerc
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:
10 changes: 9 additions & 1 deletion .flake8
100644 → 100755
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 modified .github/ISSUE_TEMPLATE/bug_report.md
100644 → 100755
Empty file.
24 changes: 12 additions & 12 deletions .github/ISSUE_TEMPLATE/config.yml
100644 → 100755
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'
40 changes: 40 additions & 0 deletions .github/actions/install/action.yml
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 modified .github/linters/.flake8
100644 → 100755
Empty file.
Empty file modified .github/linters/.isort.cfg
100644 → 100755
Empty file.
Empty file modified .github/linters/.markdown-lint.yml
100644 → 100755
Empty file.
Empty file modified .github/linters/.python-black
100644 → 100755
Empty file.
Empty file modified .github/linters/.python-lint
100644 → 100755
Empty file.
167 changes: 167 additions & 0 deletions .github/workflows/build-linux-arm64-installer.yml
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
Loading

0 comments on commit adf0a77

Please sign in to comment.