-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated to Miniforge from Mambaforge
- Loading branch information
1 parent
aa73fc2
commit 77b2d23
Showing
2 changed files
with
82 additions
and
1 deletion.
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,81 @@ | ||
name: PyInstaller Windows Build | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- 'main' | ||
- 'release-*' | ||
release: | ||
|
||
jobs: | ||
test: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
# Needed to get tags so that git describe works during package build | ||
fetch-depth: "0" | ||
|
||
- name: Get Date | ||
id: get-date | ||
run: | | ||
echo "date=$(/bin/date -u "+%Y%V")" >> $GITHUB_OUTPUT | ||
shell: bash | ||
|
||
- name: Cache Miniforge and Pip packages | ||
uses: actions/cache@v4 | ||
env: | ||
CACHE_NUMBER: 0 | ||
with: | ||
path: | | ||
~/conda_pkgs_dir | ||
~/.cache/pip | ||
key: | ||
${{runner.os}}-condapkg-${{env.CACHE_NUMBER}}-${{steps.get-date.outputs.date}}-${{hashFiles('environment-dev.yml','conda/meta.yaml')}} | ||
|
||
- name: Setup Miniforge | ||
uses: conda-incubator/setup-miniconda@v3 | ||
with: | ||
miniforge-version: latest | ||
activate-environment: mantidimaging-dev | ||
auto-activate-base: false | ||
use-mamba: true | ||
|
||
- name: Cache Miniforge environment | ||
uses: actions/cache@v4 | ||
id: cache-miniforge-environment | ||
env: | ||
CACHE_NUMBER: 0 | ||
with: | ||
path: ${{env.CONDA}}/envs/mantidimaging-dev | ||
key: | ||
${{runner.os}}-condaenv-${{env.CACHE_NUMBER}}-${{steps.get-date.outputs.date}}-${{hashFiles('environment-dev.yml','conda/meta.yaml')}} | ||
|
||
- name: Mantid Imaging developer dependencies | ||
if: steps.cache-miniforge-environment.outputs.cache-hit != 'true' | ||
shell: bash -l {0} | ||
run: | | ||
conda deactivate | ||
python ./setup.py create_dev_env | ||
- name: cuda-toolkit | ||
uses: Jimver/cuda-toolkit@v0.2.8 | ||
with: | ||
cuda: '10.2.89' | ||
|
||
- name: PyInstaller Build | ||
shell: bash -l {0} | ||
run: | | ||
conda activate mantidimaging-dev | ||
mamba install -y cupy=10.2.* --force-reinstall | ||
echo "Cuda path: $CUDA_PATH" | ||
pip install pyinstaller | ||
cd packaging | ||
python PackageWithPyInstaller.py | ||
- name: Archive PyInstalled File | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: MantidImaging | ||
path: packaging/dist |
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