Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 21 additions & 8 deletions .github/workflows/static_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,16 +167,26 @@ jobs:
name: micromamba-${{ matrix.platform }}-${{ matrix.arch }}
path: ${{ github.workspace }}/artifacts/micromamba
micromamba-static-win:
name: "win-64"
runs-on: windows-latest
name: "win-${{ matrix.arch }}"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- { os: windows-latest, arch: "64" }
- { os: windows-11-arm, arch: arm64 }
steps:
- uses: actions/checkout@v7
- uses: hendrikmuhs/ccache-action@main
with:
variant: sccache
key: sccache-${{ github.job }}-win-64
key: sccache-${{ github.job }}-win-${{ matrix.arch }}
- name: Set up MSVC
uses: ilammy/msvc-dev-cmd@v1
with:
# Native ARM64 on windows-11-arm; x64 elsewhere. Default is x64 and
# linking ARM64 conda libs with an x64 linker fails with LNK4272.
arch: ${{ matrix.arch == 'arm64' && 'arm64' || 'x64' }}
- uses: mamba-org/setup-micromamba@v3
with:
environment-name: mambabuild
Expand Down Expand Up @@ -226,34 +236,37 @@ jobs:
if %errorlevel% neq 0 exit /b %errorlevel%
.\build\micromamba\micromamba.exe --help
if %errorlevel% neq 0 exit /b %errorlevel%
# binutils is not yet distributed for win-arm64 on conda-forge.
- name: Install mingw objdump
if: matrix.arch != 'arm64'
shell: bash -l {0}
run: micromamba install -n mambabuild -y -c conda-forge binutils
- name: Check micromamba PE dependencies
if: matrix.arch != 'arm64'
shell: bash -l {0}
run: bash dev/check_micromamba_windows_dlls.sh build/micromamba/micromamba.exe
- name: build cache statistics
run: sccache --show-stats
- name: Archive-build artifact
if: failure()
run: tar -czf ${{ github.workspace }}/micromamba-build-failed-win-64.tar.gz ${{ github.workspace }}/build/
run: tar -czf ${{ github.workspace }}/micromamba-build-failed-win-${{ matrix.arch }}.tar.gz ${{ github.workspace }}/build/

- name: Test basic commands
run: |
mkdir test_prefix
${{ github.workspace }}/build/micromamba/micromamba.exe --version
${{ github.workspace }}/build/micromamba/micromamba.exe --help
${{ github.workspace }}/build/micromamba/micromamba.exe env create -y -n testenv -r ./test_prefix "python<3.13"
${{ github.workspace }}/build/micromamba/micromamba.exe env create -y -n testenv -r ./test_prefix "python=3.14"
${{ github.workspace }}/build/micromamba/micromamba.exe list -n testenv -r ./test_prefix --log-level 1

- name: Upload build artifacts
uses: actions/upload-artifact@v7
if: failure()
with:
name: micromamba-build-failed-win-64
path: ${{ github.workspace }}/micromamba-build-failed-win-64.tar.gz
name: micromamba-build-failed-win-${{ matrix.arch }}
path: ${{ github.workspace }}/micromamba-build-failed-win-${{ matrix.arch }}.tar.gz
retention-days: 7
- uses: actions/upload-artifact@v7
with:
name: micromamba-win-64
name: micromamba-win-${{ matrix.arch }}
path: ${{ github.workspace }}/build/micromamba/micromamba.exe
Loading