This commit is contained in:
Timothy Sutton 2022-11-09 09:35:48 -05:00
parent 701de67651
commit ba6286a9e7
3 changed files with 15 additions and 3 deletions

View file

@ -29,8 +29,11 @@ jobs:
- name: Build - name: Build
run: bash .\ci\windows\ci-windows.sh run: bash .\ci\windows\ci-windows.sh
- name: Archive production artifacts - name: Archive
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: brigadier-windows-exe name: brigadier-windows-exe
path: D:\a\brigadier\brigadier\dist path: D:\a\brigadier\brigadier\dist
- name: Test
run: bash .\ci\windows\test.sh

View file

@ -6,13 +6,15 @@ PYTHON_VERSION=2.7.18
script_dir="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &> /dev/null && pwd )" script_dir="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &> /dev/null && pwd )"
python="/c/hostedtoolcache/windows/Python/${PYTHON_VERSION}/x64/python" python="/c/hostedtoolcache/windows/Python/${PYTHON_VERSION}/x64/python"
ls '/c/program files'
export PYTHONPATH="${python}" export PYTHONPATH="${python}"
$python -V $python -V
$python -m pip install -r "${script_dir}/requirements.txt" $python -m pip install -r "${script_dir}/requirements.txt"
# pip-installed exes will be installed here, so we'll put those at the front
# of the PATH
PATH="/c/hostedtoolcache/windows/Python/${PYTHON_VERSION}/x64/Scripts:$PATH" PATH="/c/hostedtoolcache/windows/Python/${PYTHON_VERSION}/x64/Scripts:$PATH"
pyinstaller \ pyinstaller \
--onefile \ --onefile \
brigadier brigadier

7
ci/windows/test.sh Normal file
View file

@ -0,0 +1,7 @@
#!/bin/bash
set -eux -o pipefail
whoami
/d/a/brigadier/brigadier/dist/brigadier -m Macmini4,1