Skip to content

Commit 9e33a4a

Browse files
committed
Check that package didn't fail by checking results
1 parent 4259da6 commit 9e33a4a

File tree

1 file changed

+7
-17
lines changed

1 file changed

+7
-17
lines changed

.github/workflows/publish.yml

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -23,32 +23,22 @@ jobs:
2323

2424
- name: Prepare Jython Environment
2525
run: >-
26-
# Create a virtualenv for Ghidra packages.
27-
# It is important to use Python2.7 for this venv!
28-
# If you want, you can skip this step and use your default Python installation.
2926
mkvirtualenv -p python2.7 ghidra
30-
31-
# Create Jython's site-pacakges directory.
3227
jython_site_packages=~/.local/lib/jython2.7/site-packages
3328
mkdir -p $jython_site_packages
34-
35-
# Create a PTH file to point Jython to Python's site-packages directories.
36-
# Again, this has to be Python2.7.
37-
38-
# Outside a virtualenv, use
3929
python2.7 -c "import site; print(site.getusersitepackages()); print(site.getsitepackages()[-1])" > $jython_site_packages/python.pth
40-
41-
# If using virtualenv, use the following instead
42-
python2.7 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())" > $jython_site_packages/python.pth
43-
44-
45-
# Use pip to install packages for Ghidra
46-
pip install attrs typing
30+
pip2.7 install attrs typing
4731
4832
- name: Build Package
4933
run: >-
5034
"$GHIDRA_INSTALL_DIR/support/analyzeHeadless" /tmp tmp -scriptPath $(pwd) -preScript generate_ghidra_pyi.py ./ ${{ github.ref }}
5135
36+
- name: Check Package Results # analyzeHeadless doesn't return with a nonzero exit code on script failure
37+
run: >-
38+
test -f setup.py
39+
test -d ghidra-stubs
40+
41+
5242
- uses: actions/checkout@master
5343
- name: Set up Python 3.7
5444
uses: actions/setup-python@v1

0 commit comments

Comments
 (0)