clean up build workflow

This commit is contained in:
Lex Berezhny 2020-06-30 12:17:48 -04:00
parent b45a222f98
commit 46662b55c7

View file

@ -143,17 +143,18 @@ jobs:
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-
- if: startsWith(runner.os, 'linux')
run: sudo apt-get install libzmq3-dev
- if: startsWith(runner.os, 'mac')
run: brew install zeromq
- name: Setup - name: Setup
run: | run: |
pip install --user --upgrade pip wheel pip install --user --upgrade pip wheel
pip install sqlalchemy@git+https://github.com/eukreign/pyinstaller.git@sqlalchemy pip install sqlalchemy@git+https://github.com/eukreign/pyinstaller.git@sqlalchemy
pip install -e .
- if: startsWith(runner.os, 'linux') - if: startsWith(runner.os, 'linux')
run: pip install psycopg2 run: |
sudo apt-get install libzmq3-dev
pip install -e .[postgres]
- if: startsWith(runner.os, 'mac')
run: |
brew install zeromq
pip install -e .
- 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: | run: |
@ -164,6 +165,7 @@ jobs:
name: Build & Run (Windows) name: Build & Run (Windows)
run: | run: |
pip install pywin32 pip install pywin32
pip install -e .
pyinstaller --additional-hooks-dir=scripts/. --icon=icons/lbry256.ico --onefile --name lbrynet lbry/cli.py pyinstaller --additional-hooks-dir=scripts/. --icon=icons/lbry256.ico --onefile --name lbrynet lbry/cli.py
dist/lbrynet.exe --version dist/lbrynet.exe --version
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v2