Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix and improve static builds #2755

Merged
merged 19 commits into from
Aug 17, 2023
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Run Linux ppc64le and aarch64 builds on emulated arch
  • Loading branch information
AntoinePrv committed Aug 17, 2023
commit 2b9d72760f5f9887c5713b749fb931225ea840d1
33 changes: 16 additions & 17 deletions .github/workflows/static_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,31 @@ jobs:
environment-name: mambabuild
create-args: python boa
post-cleanup: none # FIXME the cleanup fails on OSX
- name: Build conda package
- name: Build conda package (Unix native)
if: ${{ !(matrix.platform == 'linux' && matrix.arch != '64') }}
shell: bash -l {0}
run: |
cd micromamba-feedstock/
# Special values for running the feedstock with a local source
export FEEDSTOCK_ROOT="${PWD}"
export CI="local"
# For OSX no using Docker
# For OSX not using Docker
export CONDA_BLD_PATH="${PWD}/build_artifacts"
mkdir -p "${CONDA_BLD_PATH}"
python build-locally.py "${{ matrix.platform }}_${{ matrix.arch }}_"
# The build_locally.py script will test all Linux builds, which fails outside of linux-64
- name: Build conda package (Linux emulated)
if: ${{ matrix.platform == 'linux' && matrix.arch != '64' }}
uses: uraimo/run-on-arch-action@v2
with:
arch: ${{ matrix.arch }}
distro: ubuntu_latest
run: |
cd micromamba-feedstock/
# Special values for running the feedstock with a local source
export FEEDSTOCK_ROOT="${PWD}"
export CI="local"
python build-locally.py "${{ matrix.platform }}_${{ matrix.arch }}_"
- name: Unpack micromamba package
shell: bash -l {0}
run: |
Expand All @@ -68,21 +82,6 @@ jobs:
"micromamba-feedstock/build_artifacts/${{ matrix.platform }}-${{ matrix.arch }}/"micromamba-*.tar.bz2 "pkg/"
mkdir -p "${{ github.workspace }}/artifacts"
cp pkg/bin/micromamba "${{ github.workspace }}/artifacts"
- name: Test micromamba on emulated target architecture
if: ${{ matrix.arch != '64' && matrix.platform == 'linux' }}
uses: uraimo/run-on-arch-action@v2
with:
arch: ${{ matrix.arch }}
distro: ubuntu_latest
dockerRunArgs: |
-v "${{ github.workspace }}/artifacts:/artifacts"
run: |
cd /artifacts
./micromamba --version
./micromamba --help
./micromamba
apt update && apt install -y ca-certificates
./micromamba create -p /tmp/testenv --override-channels -c conda-forge --yes python=3.9
- name: Archive conda-build artifact
if: failure()
run: tar -czf ${{ github.workspace }}/micromamba-conda-build-failed-${{ matrix.platform }}-${{ matrix.arch }}.tar.gz $MAMBA_ROOT_PREFIX/envs/mambabuild/conda-bld/micromamba_*
Expand Down
Loading