Skip to content

Commit

Permalink
update to miniforge too
Browse files Browse the repository at this point in the history
  • Loading branch information
ReimarBauer committed Dec 8, 2023
1 parent 717ba79 commit 8868cbd
Showing 1 changed file with 42 additions and 42 deletions.
84 changes: 42 additions & 42 deletions .github/workflows/test_installer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,54 +16,54 @@ jobs:
shell: bash

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install mambaforge+MSS
- name: Install miniforge+MSS
run: |
cd $GITHUB_WORKSPACE
chmod +x LinuxMac.sh
./LinuxMac.sh -a
- name: Test MSS installed by direct call
run: |
/home/runner/mambaforge/envs/mssenv/bin/msui --version | grep "Mission Support System (MSS)"
/home/runner/Miniforge/envs/mssenv/bin/msui --version | grep "Mission Support System (MSS)"
- name: Test MSS installed in activated env
run: |
. /home/runner/mambaforge/etc/profile.d/conda.sh
. /home/runner/mambaforge/etc/profile.d/mamba.sh
. /home/runner/Miniforge/etc/profile.d/conda.sh
. /home/runner/Minitforge/etc/profile.d/mamba.sh
mamba init
mamba activate mssenv
msui --version | grep "Mission Support System (MSS)"
install-mss-on-existing-linux-mambaforge-installation:
install-mss-on-existing-linux-miniforge-installation:
runs-on: ubuntu-latest

defaults:
run:
shell: bash

steps:
- uses: actions/checkout@v3
- name: Install mambaforge by curl(1/3)
- uses: actions/checkout@v4
- name: Install miniforge by curl(1/3)
run: |
curl -L0 "https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-Linux-x86_64.sh" --output mambaforge.sh
chmod +x mambaforge.sh
script -q -c "./mambaforge.sh -u -b -p ~/mambaforge"
eval "$(/home/runner/mambaforge/bin/conda shell.bash hook)"
curl -L0 "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge-Linux-x86_64.sh" --output miniforge.sh
chmod +x miniforge.sh
script -q -c "./miniforge.sh -u -b -p ~/miniforge"
eval "$(/home/runner/Miniforge/bin/conda shell.bash hook)"
mamba init
- name: check mamba info(2/3)
run: |
eval "$(/home/runner/mambaforge/bin/conda shell.bash hook)"
eval "$(/home/runner/Miniforge/bin/conda shell.bash hook)"
mamba info
- name: Install MSS by LinuxMac.sh -a (3/3)
run: |
eval "$(/home/runner/mambaforge/bin/conda shell.bash hook)"
eval "$(/home/runner/Miniforge/bin/conda shell.bash hook)"
cd $GITHUB_WORKSPACE
chmod +x LinuxMac.sh
./LinuxMac.sh -a
- name: Test MSS installed
run: |
/home/runner/mambaforge/envs/mssenv/bin/msui --version | grep "Mission Support System (MSS)"
/home/runner/Miniforge/envs/mssenv/bin/msui --version | grep "Mission Support System (MSS)"
install-mss-on-macos-from-scratch:
Expand All @@ -76,16 +76,16 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Install mambaforge+MSS
- name: Install miniforge+MSS
run: |
cd $GITHUB_WORKSPACE
chmod +x LinuxMac.sh
./LinuxMac.sh -a
- name: Test MSS installed
run: |
/Users/runner/mambaforge/envs/mssenv/bin/msui --version | grep "Mission Support System (MSS)"
/Users/runner/Miniforge/envs/mssenv/bin/msui --version | grep "Mission Support System (MSS)"
install-mss-on-existing-macos-mambaforge-installation:
install-mss-on-existing-macos-miniforge-installation:
runs-on: macos-latest

defaults:
Expand All @@ -94,26 +94,26 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Install mambaforge by curl(1/3)
- name: Install miniforge by curl(1/3)
run: |
curl -L0 "https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-MacOSX-x86_64.sh" --output mambaforge.sh
chmod +x mambaforge.sh
script -q output.txt ./mambaforge.sh -u -b -p ~/mambaforge
eval "$(/Users/runner/mambaforge/bin/conda shell.bash hook)"
curl -L0 "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge-MacOSX-x86_64.sh" --output miniforge.sh
chmod +x miniforge.sh
script -q output.txt ./miniforge.sh -u -b -p ~/miniforge
eval "$(/Users/runner/Miniforge/bin/conda shell.bash hook)"
mamba init
- name: check mamba info(2/3)
run: |
eval "$(/Users/runner/mambaforge/bin/conda shell.bash hook)"
eval "$(/Users/runner/Miniforge/bin/conda shell.bash hook)"
mamba info
- name: Install MSS by LinuxMac.sh -a (3/3)
run: |
eval "$(/Users/runner/mambaforge/bin/conda shell.bash hook)"
eval "$(/Users/runner/Miniforge/bin/conda shell.bash hook)"
cd $GITHUB_WORKSPACE
chmod +x LinuxMac.sh
./LinuxMac.sh -a
- name: Test MSS installed
run: |
/Users/runner/mambaforge/envs/mssenv/bin/msui --version | grep "Mission Support System (MSS)"
/Users/runner/Miniforge/envs/mssenv/bin/msui --version | grep "Mission Support System (MSS)"
install-mss-on-windows-from-scratch:
runs-on: windows-latest
Expand All @@ -123,18 +123,18 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Install mambaforge+MSS (1/2) (needs new shell to recognise mamba)
- name: Install miniforge+MSS (1/2) (needs new shell to recognise mamba)
run: |
cd %GITHUB_WORKSPACE%
Windows.bat -a
- name: Install mambaforge+MSS (2/2)
- name: Install miniforge+MSS (2/2)
run: |
cd %GITHUB_WORKSPACE%
set PATH=%PATH%;%USERPROFILE%\mambaforge\condabin
set PATH=%PATH%;%USERPROFILE%\Miniforge\condabin
Windows.bat -a
- name: Test MSS installed
run: |
set PATH=%PATH%;%USERPROFILE%\mambaforge\condabin
set PATH=%PATH%;%USERPROFILE%\Miniforge\condabin
call conda.bat activate mssenv
msui --version | findstr /i /c:"Mission Support System (MSS)"
Expand All @@ -147,39 +147,39 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Install mambaforge by curl(1/2)
- name: Install miniforge by curl(1/2)
run: |
curl.exe -fsSLo mambaforge.exe https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-Windows-x86_64.exe
Start-Process .\mambaforge.exe -Wait -ArgumentList "/InstallationType=JustMe /RegisterPython=1 /AddToPath=1 /S /D=$($env:USERPROFILE)\mambaforge"
curl.exe -fsSLo miniforge.exe https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge-Windows-x86_64.exe
Start-Process .\miniforge.exe -Wait -ArgumentList "/InstallationType=JustMe /RegisterPython=1 /AddToPath=1 /S /D=$($env:USERPROFILE)\Miniforge"
- name: check mamba info(2/2)
run: |
$env:Path += ";$($env:USERPROFILE)\mambaforge\condabin"
$env:Path += ";$($env:USERPROFILE)\Miniforge\condabin"
mamba info
install-mss-on-existing-windows-mambaforge-installation:
install-mss-on-existing-windows-miniforge-installation:
runs-on: windows-latest
defaults:
run:
shell: cmd
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install mambaforge by curl(1/3)
- name: Install miniforge by curl(1/3)
run: |
curl.exe -fsSLo mambaforge.exe https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-Windows-x86_64.exe
start /wait "" mambaforge.exe /InstallationType=JustMe /RegisterPython=1 /AddToPath=1 /S /D=%USERPROFILE%\mambaforge
curl.exe -fsSLo miniforge.exe https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge-Windows-x86_64.exe
start /wait "" miniforge.exe /InstallationType=JustMe /RegisterPython=1 /AddToPath=1 /S /D=%USERPROFILE%\Miniforge
- name: check mamba info(2/3)
run: |
set PATH=%PATH%;%USERPROFILE%\mambaforge\condabin
set PATH=%PATH%;%USERPROFILE%\Miniforge\condabin
mamba info
- name: Install MSS by Windows.bat -a (3/3)
run: |
set PATH=%PATH%;%USERPROFILE%\mambaforge\condabin
set PATH=%PATH%;%USERPROFILE%\Miniforge\condabin
Windows.bat -a
- name: Test MSS installed
run: |
set PATH=%PATH%;%USERPROFILE%\mambaforge\condabin
set PATH=%PATH%;%USERPROFILE%\Miniforge\condabin
call conda.bat activate mssenv
msui --version | findstr /i /c:"Mission Support System (MSS)"
Expand Down

0 comments on commit 8868cbd

Please sign in to comment.