comment out pyinstaller build.yml

This commit is contained in:
Jack Robison 2022-03-31 10:51:55 -04:00
parent 90062296e8
commit 7d78589510
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -1,60 +1,60 @@
name: "Build" #name: "Build"
#
on: #on:
push: # push:
branches: [ master ] # branches: [ master ]
pull_request: # pull_request:
# The branches below must be a subset of the branches above # # The branches below must be a subset of the branches above
branches: [ master ] # branches: [ master ]
schedule: # schedule:
- cron: '43 2 * * 0' # - cron: '43 2 * * 0'
#
jobs: #jobs:
build: # build:
name: "build / binary" # name: "build / binary"
strategy: # strategy:
matrix: # matrix:
os: # os:
- ubuntu-20.04 # - ubuntu-20.04
- macos-latest # - macos-latest
# - windows-latest ## - windows-latest
runs-on: ${{ matrix.os }} # runs-on: ${{ matrix.os }}
steps: # steps:
- uses: actions/checkout@v2 # - uses: actions/checkout@v2
- uses: actions/setup-python@v1 # - uses: actions/setup-python@v1
with: # with:
python-version: '3.9' # python-version: '3.9'
- id: os-name # - id: os-name
uses: ASzc/change-string-case-action@v1 # uses: ASzc/change-string-case-action@v1
with: # with:
string: ${{ runner.os }} # string: ${{ runner.os }}
- name: set pip cache dir # - name: set pip cache dir
id: pip-cache # id: pip-cache
run: echo "::set-output name=dir::$(pip cache dir)" # run: echo "::set-output name=dir::$(pip cache dir)"
- name: extract pip cache # - name: extract pip cache
uses: actions/cache@v2 # uses: actions/cache@v2
with: # with:
path: ${{ steps.pip-cache.outputs.dir }} # path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }} # key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }}
restore-keys: ${{ runner.os }}-pip- # restore-keys: ${{ runner.os }}-pip-
- run: pip install pyinstaller==4.4 # - run: pip install pyinstaller==4.4
- run: pip install -e . # - run: pip install -e .
- if: startsWith(github.ref, 'refs/tags/v') # - if: startsWith(github.ref, 'refs/tags/v')
run: python docker/set_build.py # run: python docker/set_build.py
- if: startsWith(runner.os, 'linux') || startsWith(runner.os, 'mac') # - if: startsWith(runner.os, 'linux') || startsWith(runner.os, 'mac')
name: Build & Run (Unix) # name: Build & Run (Unix)
run: |
pyinstaller --onefile --name scribe scribe/blockchain/__main__.py
pyinstaller --onefile --name scribe-elastic-sync scribe/elasticsearch/__main__.py
pyinstaller --onefile --name scribe-hub scribe/hub/__main__.py
dist/scribe --version
# - if: startsWith(runner.os, 'windows')
# name: Build & Run (Windows)
# run: | # run: |
# pip install pywin32==301 # pyinstaller --onefile --name scribe scribe/blockchain/__main__.py
# pyinstaller --additional-hooks-dir=scripts/. --icon=icons/lbry256.ico --onefile --name lbrynet lbry/extras/cli.py # pyinstaller --onefile --name scribe-elastic-sync scribe/elasticsearch/__main__.py
# dist/lbrynet.exe --version # pyinstaller --onefile --name scribe-hub scribe/hub/__main__.py
- uses: actions/upload-artifact@v2 # dist/scribe --version
with: ## - if: startsWith(runner.os, 'windows')
name: scribe-${{ steps.os-name.outputs.lowercase }} ## name: Build & Run (Windows)
path: dist/ ## run: |
## pip install pywin32==301
## pyinstaller --additional-hooks-dir=scripts/. --icon=icons/lbry256.ico --onefile --name lbrynet lbry/extras/cli.py
## dist/lbrynet.exe --version
# - uses: actions/upload-artifact@v2
# with:
# name: scribe-${{ steps.os-name.outputs.lowercase }}
# path: dist/