Update release to micromamba and renew conda environment to latest conda-forge ressources

This commit is contained in:
2026-03-12 14:56:39 +01:00
parent 334e29d0d6
commit 461a20e184
3 changed files with 124 additions and 44 deletions

View File

@@ -23,7 +23,6 @@ on:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
@@ -118,10 +117,30 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install dependencies
- name: Ensure build environment
shell: powershell
run: |
C:\Miniconda\condabin\conda.bat env update --file conda_windows.yml --name base
C:\Miniconda\condabin\conda.bat init powershell
$envName="eos_build"
$envFile="conda_windows.yml"
$hashFile="$env:TEMP\$envName.hash"
$newHash = (Get-FileHash $envFile).Hash
if (!(Test-Path $hashFile)) {
$rebuild = $true
} else {
$oldHash = Get-Content $hashFile
$rebuild = $oldHash -ne $newHash
}
if ($rebuild) {
Write-Host "Environment changed → rebuilding"
micromamba env remove -n $envName -y 2>$null
micromamba create -n $envName -f $envFile -y
$newHash | Out-File $hashFile
} else {
Write-Host "Environment unchanged → using cached env"
}
- name: Build with pyinstaller
run: |
pyinstaller windows_build.spec