Update release to micromamba and renew conda environment to latest conda-forge ressources
This commit is contained in:
27
.github/workflows/release.yml
vendored
27
.github/workflows/release.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user