forked from nasa/HyperCP
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' of https://github.com/nasa/HyperCP into dev
- Loading branch information
Showing
94 changed files
with
2,179 additions
and
39,859 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- dev | ||
- workflow | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
defaults: # Required for conda environment activation | ||
run: | ||
shell: bash -el {0} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: ['ubuntu-latest', 'macos-latest', 'windows-latest'] | ||
|
||
steps: | ||
- name: Get System Information | ||
uses: kenchan0130/actions-system-info@master | ||
id: system-info | ||
- name: Echo Host Information | ||
run: | | ||
echo "OS: ${{ runner.os }}" | ||
echo "CPU Core: ${{ steps.system-info.outputs.cpu-core }}" | ||
echo "CPU Model: ${{ steps.system-info.outputs.cpu-model }}" | ||
echo "Hostname: ${{ steps.system-info.outputs.hostname }}" | ||
echo "Kernel release: ${{ steps.system-info.outputs.kernel-release }}" | ||
echo "Kernel version: ${{ steps.system-info.outputs.kernel-version }}" | ||
echo "Name: ${{ steps.system-info.outputs.name }}" | ||
echo "Platform: ${{ steps.system-info.outputs.platform }}" | ||
echo "Release: ${{ steps.system-info.outputs.release }}" | ||
echo "Total memory bytes: ${{ steps.system-info.outputs.totalmem }}" | ||
- name: Extract Branch Name | ||
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT | ||
id: extract_branch | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ steps.extract_branch.outputs.branch }} | ||
|
||
# - name: Cache conda | ||
# uses: actions/cache@v2 | ||
# env: | ||
# # Increase this value to reset cache if etc/example-environment.yml has not changed | ||
# CACHE_NUMBER: 0 | ||
# with: | ||
# path: ~/conda_pkgs_dir | ||
# key: | ||
# ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('environment.yml') }} | ||
- name: Setup conda environment | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
auto-activate-base: false | ||
activate-environment: hypercp | ||
environment-file: environment.yml | ||
# use-only-tar-bz2: true | ||
- name: Install PyInstaller | ||
run: conda install --channel=conda-forge pyinstaller==6.0 | ||
- name: Capture conda environment | ||
run: | | ||
conda info | ||
conda list | ||
- name: Make Bundle | ||
run: | | ||
python make.py | ||
echo "BUNDLE_NAME=$(ls Bundled/dist | xargs)" >> $GITHUB_ENV | ||
- name: Zip Bundle | ||
uses: thedoctor0/[email protected] | ||
with: | ||
type: 'zip' | ||
directory: 'Bundled/dist/' | ||
path: '${{ env.BUNDLE_NAME }}' | ||
filename: '${{ env.BUNDLE_NAME }}.zip' | ||
|
||
- name: Upload Bundle | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{ env.BUNDLE_NAME }} | ||
path: Bundled/dist/${{ env.BUNDLE_NAME }}.zip | ||
# Known issue of double zip: https://github.com/actions/upload-artifact/issues/39 | ||
# However, need to zip before upload as too many files to send otherwise (very slow) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.