Skip to content

Commit

Permalink
Merge pull request #82 from NREL/RemoveBuildScript
Browse files Browse the repository at this point in the history
Eliminate build script
  • Loading branch information
Myoldmopar committed Nov 8, 2021
2 parents b9726bf + aec36cf commit f8696be
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 38 deletions.
28 changes: 23 additions & 5 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,29 @@ jobs:
python: xvfb-run python3
pip_arg: ""
nosetests_args: --with-coverage --cover-package epregressions # --cover-html for local html results
build_arg: Ubuntu20
pyinstall_args: ""
add_data: "epregressions/diffs/math_diff.config:epregressions/diffs"
pack_tool: tar -zcvf
extension: .tar.gz
pack_suffix: -C dist runner
- os: macos-10.15
python: python3
pip_arg: ""
nosetests_args: ""
build_arg: Mac
pyinstall_args: --noconsole
add_data: "epregressions/diffs/math_diff.config:epregressions/diffs"
pack_tool: tar -zcvf
extension: .tar.gz
pack_suffix: -C dist runner
- os: windows-2019
python: python
pip_arg: --user
nosetests_args: ""
build_arg: Windows
pyinstall_args: --noconsole
add_data: "epregressions/diffs/math_diff.config;epregressions/diffs"
pack_tool: 7z.exe a
extension: .zip
pack_suffix: ./dist/*

runs-on: ${{ matrix.os }}

Expand All @@ -44,8 +56,14 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: coveralls --service=github
- name: Build Package
run: ./scripts/build.sh ${{ matrix.build_arg }}
- name: Make Deploy Directory
run: mkdir deploy
- name: Build Installer
run: pyinstaller --onefile ${{ matrix.pyinstall_args }} --add-data "${{ matrix.add_data }}" epregressions/runner.py
- name: Fixup Installer
run: |
VERSION_STRING=$(grep VERSION epregressions/__init__.py | cut -d= -f2 | xargs)
${{ matrix.pack_tool }} deploy/EnergyPlusRegressionTool-"${VERSION_STRING}"-${{ matrix.os }}${{ matrix.extension }} ${{ matrix.pack_suffix }}
- name: Upload Package
uses: actions/upload-artifact@v2
with:
Expand Down
33 changes: 0 additions & 33 deletions scripts/build.sh

This file was deleted.

0 comments on commit f8696be

Please sign in to comment.