forked from Chia-Network/chia-blockchain
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GUI to a separate repo (Chia-Network#859)
* GUI to a separate repo * correct repo name, codeql to just python * fetch-depth: 0 is indeed needed * remove debug ls's * Switch to a submodule * update blockchain gitignore * Return omitted cd to install-gui.sh
- Loading branch information
Showing
346 changed files
with
109 additions
and
56,562 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
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
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
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
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
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
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 |
---|---|---|
|
@@ -17,83 +17,91 @@ jobs: | |
timeout-minutes: 30 | ||
|
||
steps: | ||
- name: Cancel previous runs on the same branch | ||
if: ${{ github.ref != 'refs/heads/dev' }} | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
- name: Cancel previous runs on the same branch | ||
if: ${{ github.ref != 'refs/heads/dev' }} | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
- name: Checkout Code | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
# we need fetch-depth 0 so setuptools_scm can resolve tags | ||
- 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: Get npm cache directory | ||
id: npm-cache | ||
run: | | ||
echo "::set-output name=dir::$(npm config get cache)" | ||
- name: Cache npm | ||
uses: actions/cache@v2 | ||
with: | ||
path: ${{ steps.npm-cache.outputs.dir }} | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
- name: Cache npm | ||
uses: actions/cache@v2 | ||
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: Get pip cache dir | ||
id: pip-cache | ||
run: | | ||
echo "::set-output name=dir::$(pip cache dir)" | ||
- name: Cache pip | ||
uses: actions/cache@v2 | ||
with: | ||
path: ${{ steps.pip-cache.outputs.dir }} | ||
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip- | ||
- name: Cache pip | ||
uses: actions/cache@v2 | ||
with: | ||
path: ${{ steps.pip-cache.outputs.dir }} | ||
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip- | ||
- name: Test for secrets access | ||
id: check_secrets | ||
shell: bash | ||
run: | | ||
unset HAS_SECRET | ||
if [ -n "$SECRET" ]; then HAS_SECRET='true' ; fi | ||
echo ::set-output name=HAS_SECRET::${HAS_SECRET} | ||
env: | ||
SECRET: "${{ secrets.WIN_CODE_SIGN_CERT }}" | ||
# We can't upgrade to Python 3.8 until we have a miniupnpc binary | ||
- uses: actions/setup-python@v2 | ||
name: Install Python 3.7 | ||
with: | ||
python-version: "3.7" | ||
|
||
- name: Decode code signing cert into an encrypted file | ||
if: steps.check_secrets.outputs.HAS_SECRET | ||
uses: kitek/[email protected] | ||
with: | ||
encoded-value: ${{ secrets.WIN_CODE_SIGN_CERT }} | ||
destination-file: .\electron-react\win_code_sign_cert.p12 | ||
- name: Checkout GUI | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: 'Chia-Network/chia-blockchain-gui' | ||
ref: 'main' | ||
path: 'chia-blockchain-gui' | ||
|
||
- uses: actions/setup-python@v2 | ||
name: Install Python 3.7 | ||
with: | ||
python-version: "3.7" | ||
- name: Test for secrets access | ||
id: check_secrets | ||
shell: bash | ||
run: | | ||
unset HAS_SECRET | ||
if [ -n "$SECRET" ]; then HAS_SECRET='true' ; fi | ||
echo ::set-output name=HAS_SECRET::${HAS_SECRET} | ||
env: | ||
SECRET: "${{ secrets.WIN_CODE_SIGN_CERT }}" | ||
|
||
- 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_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: Decode code signing cert into an encrypted file | ||
if: steps.check_secrets.outputs.HAS_SECRET | ||
uses: kitek/[email protected] | ||
with: | ||
encoded-value: ${{ secrets.WIN_CODE_SIGN_CERT }} | ||
destination-file: .\chia-blockchain-gui\win_code_sign_cert.p12 | ||
|
||
- name: Upload Windows exe's to artifacts | ||
uses: actions/[email protected] | ||
with: | ||
name: Windows-Exe | ||
path: ${{ github.workspace }}\electron-react\Chia-win32-x64\ | ||
- 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_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 Installer to artifacts | ||
uses: actions/[email protected] | ||
with: | ||
name: Windows-Installers | ||
path: ${{ github.workspace }}\electron-react\release-builds\ | ||
- name: Upload Windows exe's to artifacts | ||
uses: actions/[email protected] | ||
with: | ||
name: Windows-Exe | ||
path: ${{ github.workspace }}\chia-blockchain-gui\Chia-win32-x64\ | ||
|
||
- name: Upload Installer to artifacts | ||
uses: actions/[email protected] | ||
with: | ||
name: Windows-Installers | ||
path: ${{ github.workspace }}\chia-blockchain-gui\release-builds\ |
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
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
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
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
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,3 @@ | ||
[submodule "chia-blockchain-gui"] | ||
path = chia-blockchain-gui | ||
url = https://github.com/Chia-Network/chia-blockchain-gui.git |
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
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
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
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
Submodule chia-blockchain-gui
added at
995a77
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.