Skip to content

Commit

Permalink
Aligned with Chia 1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
BTCgreen-Network committed Mar 11, 2022
1 parent 71a4fb2 commit ad0de98
Show file tree
Hide file tree
Showing 1,664 changed files with 788,920 additions and 218,243 deletions.
5 changes: 4 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
.github/linters/.flake8
[flake8]
max-line-length = 120
exclude = ./typings/**/*
ignore = E203,W503
18 changes: 8 additions & 10 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ assignees: ''
---

**Describe the bug**
<!-- A clear and concise description of what the bug is. (If what you are experiencing is NOT a bug but instead a support issue, please open a Discussion instead!) -->
A clear and concise description of what the bug is. (If what you are experiencing is NOT a bug but instead a support issue, please open a Discussion instead!)

**To Reproduce**

Steps to reproduce the behavior:

1. Go to '...'
Expand All @@ -20,17 +19,16 @@ Steps to reproduce the behavior:
4. See error

**Expected behavior**
<!-- A clear and concise description of what you expected to happen. -->
A clear and concise description of what you expected to happen.

**Screenshots**
<!-- If applicable, add screenshots to help explain your problem. -->
If applicable, add screenshots to help explain your problem.

**Desktop**
<!-- Please complete the following information. -->
**Desktop (please complete the following information):**

- OS: <!-- e.g. Linux -->
- OS Version/Flavor: <!-- e.g. CentOS 7.2 -->
- CPU: <!-- e.g. Intel Xeon 8175M -->
- OS: [e.g. Linux]
- OS Version/Flavor: [e.g. CentOS 7.2]
- CPU: [e.g. Intel Xeon 8175M]

**Additional context**
<!-- Add any other context about the problem here. -->
Add any other context about the problem here.
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ contact_links:
name: Make a Request
url: >-
https://github.com/Taco-Network/taco-blockchain/discussions/new?category=ideas
- about: Get support on the Taco Keybase chat channels.
name: Join the Keybase.io support chat
url: 'https://keybase.io/team/taco_network.public'
- about: Get support on the Taco Discord chat channels.
name: Join the Discord.io support chat
url: 'https://discord.gg/TgJyxsEFFc'
31 changes: 0 additions & 31 deletions .github/dependabot.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,12 @@ jobs:
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Get pip cache dir
id: pip-cache
run: |
echo "::set-output name=dir::$(pip cache dir)"
- name: Cache pip
uses: actions/cache@v2.1.6
with:
Expand All @@ -68,6 +70,7 @@ jobs:
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
restore-keys: |
${{ runner.os }}-pip-
# 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
Expand All @@ -77,6 +80,7 @@ jobs:
pip3 install setuptools_scm
echo "::set-output name=TACO_INSTALLER_VERSION::$(python3 ./build_scripts/installer-version.py)"
deactivate
# Get the most recent release from chia-plotter-madmax
- uses: actions/github-script@v4
id: 'latest-madmax'
Expand All @@ -89,13 +93,15 @@ jobs:
repo: 'chia-plotter-madmax',
});
return releases.data[0].tag_name;
- name: Get latest madmax plotter
run: |
mkdir "$GITHUB_WORKSPACE/madmax"
wget -O "$GITHUB_WORKSPACE/madmax/taco_plot" https://github.com/Chia-Network/chia-plotter-madmax/releases/download/${{ steps.latest-madmax.outputs.result }}/chia_plot-${{ steps.latest-madmax.outputs.result }}-x86-64
wget -O "$GITHUB_WORKSPACE/madmax/taco_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 }}-x86-64
chmod +x "$GITHUB_WORKSPACE/madmax/taco_plot"
chmod +x "$GITHUB_WORKSPACE/madmax/taco_plot_k34"
# Get the most recent release from bladebit
- uses: actions/github-script@v4
id: 'latest-bladebit'
Expand All @@ -108,26 +114,30 @@ jobs:
repo: 'bladebit',
});
return releases.data[0].tag_name;
- name: Get latest bladebit plotter
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-x86-64.tar.gz
tar -xvzf /tmp/bladebit.tar.gz -C $GITHUB_WORKSPACE/bladebit
chmod +x "$GITHUB_WORKSPACE/bladebit/bladebit"
- name: Run install script
env:
INSTALL_PYTHON_VERSION: ${{ matrix.python-version }}
BUILD_VDF_CLIENT: "N"
run: |
sh install.sh
- name: Setup Node 12.x
- name: Setup Node 16.x
uses: actions/setup-node@v2.4.1
with:
node-version: '12.x'
node-version: '16.x'

- name: Add jq
run: |
sudo apt-get install -y jq
- name: Build .deb package
run: |
. ./activate
Expand All @@ -136,6 +146,7 @@ jobs:
git status
cd ../build_scripts
sh build_linux_deb.sh amd64
- name: Upload Linux artifacts
uses: actions/upload-artifact@v2
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,12 @@ jobs:
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Get pip cache dir
id: pip-cache
run: |
echo "::set-output name=dir::$(pip cache dir)"
- name: Cache pip
uses: actions/cache@v2.1.6
with:
Expand All @@ -67,6 +69,7 @@ jobs:
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Test for secrets access
id: check_secrets
shell: bash
Expand Down Expand Up @@ -96,19 +99,22 @@ jobs:
repo: 'chia-plotter-madmax',
});
return releases.data[0].tag_name;
- name: Get latest madmax plotter
run: |
mkdir "$GITHUB_WORKSPACE/madmax"
wget -O "$GITHUB_WORKSPACE/madmax/taco_plot" https://github.com/Chia-Network/chia-plotter-madmax/releases/download/${{ steps.latest-madmax.outputs.result }}/chia_plot-${{ steps.latest-madmax.outputs.result }}-macos-intel
wget -O "$GITHUB_WORKSPACE/madmax/taco_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 }}-macos-intel
chmod +x "$GITHUB_WORKSPACE/madmax/taco_plot"
chmod +x "$GITHUB_WORKSPACE/madmax/taco_plot_k34"
- name: Run install script
env:
INSTALL_PYTHON_VERSION: ${{ matrix.python-version }}
BUILD_VDF_CLIENT: "N"
run: |
sh install.sh
- name: Setup Node 14.x
uses: actions/setup-node@v2.4.1
with:
Expand All @@ -125,6 +131,7 @@ jobs:
git status
cd ../build_scripts
sh build_macos.sh
- name: Upload MacOS artifacts
uses: actions/upload-artifact@v2
with:
Expand Down
141 changes: 141 additions & 0 deletions .github/workflows/build-windows-installer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
name: Windows Installer on Windows 10 and Python 3.9

on:
push:
branches:
- main
tags:
- '**'
pull_request:
branches:
- '**'

jobs:
build:
name: Windows Installer on Windows 10 and Python 3.9
runs-on: [windows-2019]
timeout-minutes: 40

steps:
- name: Cancel previous runs on the same branch
if: ${{ github.ref != 'refs/heads/main' }}
uses: styfle/cancel-workflow-action@0.9.1
with:
access_token: ${{ github.token }}

- name: Checkout Code
uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: recursive

- name: Get npm cache directory
id: npm-cache
run: |
echo "::set-output name=dir::$(npm config get cache)"
- name: Cache npm
uses: actions/cache@v2.1.6
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Get pip cache dir
id: pip-cache
run: |
echo "::set-output name=dir::$(pip cache dir)"
- name: Cache pip
uses: actions/cache@v2.1.6
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
restore-keys: |
${{ runner.os }}-pip-
# We can't upgrade to Python 3.8 until we have a miniupnpc binary
- uses: actions/setup-python@v2
name: Install Python 3.9
with:
python-version: "3.9"

# 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: |
python -m venv ..\venv
. ..\venv\Scripts\Activate.ps1
pip3 install setuptools_scm
$env:TACO_INSTALLER_VERSION = python .\build_scripts\installer-version.py -win
echo "$env:TACO_INSTALLER_VERSION"
echo "::set-output name=TACO_INSTALLER_VERSION::$env:TACO_INSTALLER_VERSION"
deactivate
# Get the most recent release from chia-plotter-madmax
- uses: actions/github-script@v4
id: 'latest-madmax'
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
result-encoding: string
script: |
const releases = await github.repos.listReleases({
owner: 'Chia-Network',
repo: 'chia-plotter-madmax',
});
return releases.data[0].tag_name;
- name: Get latest madmax plotter
run: |
mkdir "$env:GITHUB_WORKSPACE\madmax"
Invoke-WebRequest https://github.com/Chia-Network/chia-plotter-madmax/releases/download/${{ steps.latest-madmax.outputs.result }}/chia_plot-${{ steps.latest-madmax.outputs.result }}.exe -OutFile "$env:GITHUB_WORKSPACE\madmax\taco_plot.exe"
Invoke-WebRequest https://github.com/Chia-Network/chia-plotter-madmax/releases/download/${{ steps.latest-madmax.outputs.result }}/chia_plot_k34-${{ steps.latest-madmax.outputs.result }}.exe -OutFile "$env:GITHUB_WORKSPACE\madmax\taco_plot_k34.exe"
# Get the most recent release from bladebit
- uses: actions/github-script@v4
id: 'latest-bladebit'
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
result-encoding: string
script: |
const releases = await github.repos.listReleases({
owner: 'Chia-Network',
repo: 'bladebit',
});
return releases.data[0].tag_name;
- name: Get latest bladebit plotter
run: |
mkdir "$env:GITHUB_WORKSPACE\bladebit"
Invoke-WebRequest https://github.com/Chia-Network/bladebit/releases/download/${{ steps.latest-bladebit.outputs.result }}/bladebit-${{ steps.latest-bladebit.outputs.result }}-windows-x86-64.zip -OutFile "$env:GITHUB_WORKSPACE\bladebit\bladebit.zip"
Expand-Archive -Path "$env:GITHUB_WORKSPACE\bladebit\bladebit.zip" -DestinationPath "$env:GITHUB_WORKSPACE\bladebit\"
rm "$env:GITHUB_WORKSPACE\bladebit\bladebit.zip"
- name: Build Windows installer with build_scripts\build_windows.ps1
env:
WIN_CODE_SIGN_PASS: ${{ secrets.WIN_CODE_SIGN_PASS }}
HAS_SECRET: ${{ steps.check_secrets.outputs.HAS_SIGNING_SECRET }}
run: |
$env:path="C:\Program` Files` (x86)\Microsoft` Visual` Studio\2019\Enterprise\SDK\ScopeCppSDK\vc15\VC\bin\;$env:path"
$env:path="C:\Program` Files` (x86)\Windows` Kits\10\App` Certification` Kit;$env:path"
.\build_scripts\build_windows.ps1
- name: Upload Windows exe's to artifacts
uses: actions/upload-artifact@v2.2.2
with:
name: Windows-Exe
path: ${{ github.workspace }}\taco-blockchain-gui\Taco-win32-x64\

- name: Upload Installer to artifacts
uses: actions/upload-artifact@v2.2.2
with:
name: Windows-Installers
path: ${{ github.workspace }}\taco-blockchain-gui\release-builds\

- name: Create Checksums
env:
TACO_INSTALLER_VERSION: ${{ steps.version_number.outputs.TACO_INSTALLER_VERSION }}
run: |
certutil.exe -hashfile ${{ github.workspace }}\taco-blockchain-gui\release-builds\windows-installer\TacoSetup-${{ steps.version_number.outputs.TACO_INSTALLER_VERSION }}.exe SHA256 > ${{ github.workspace }}\taco-blockchain-gui\release-builds\windows-installer\TacoSetup-${{ steps.version_number.outputs.TACO_INSTALLER_VERSION }}.exe.sha256
ls ${{ github.workspace }}\taco-blockchain-gui\release-builds\windows-installer\
Loading

0 comments on commit ad0de98

Please sign in to comment.