Emscripten 3.1.45 and Python 3.11 update #1612
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build recipes | |
on: | |
push: | |
branches: | |
- 'main' | |
pull_request: | |
jobs: | |
build_recipes: | |
runs-on: ubuntu-latest | |
env: | |
TARGET_PLATFORM: emscripten-wasm32 | |
GITHUB_OWNER: "emscripten-forge" | |
strategy: | |
fail-fast: false | |
matrix: | |
emsdk_ver: ["3.1.45"] | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Maximize build space | |
run: | | |
sudo rm -rf /usr/share/dotnet | |
sudo rm -rf /opt/ghc | |
sudo rm -rf "/usr/local/share/boost" | |
sudo rm -rf "$AGENT_TOOLSDIRECTORY" | |
- name: delete fortran... | |
run: | | |
sudo apt-get remove gfortran -y | |
################################################################ | |
# CONFIG | |
################################################################ | |
- name: global config | |
shell: bash -el {0} | |
run: | | |
git config --global advice.detachedHead false | |
cp $GITHUB_WORKSPACE/.github/workflows/.condarc $HOME | |
cp $GITHUB_WORKSPACE/conda_build_config.yaml $HOME | |
################################################################ | |
# MAMBA | |
################################################################ | |
- uses: mamba-org/setup-micromamba@v1 | |
with: | |
environment-file: ci_env.yml | |
environment-name: ci | |
init-shell: >- | |
bash | |
cache-environment: true | |
post-cleanup: 'all' | |
################################################################ | |
# setup emsdk | |
################################################################ | |
- name: "setup emsdk" | |
shell: bash -el {0} | |
run: | | |
./emsdk/setup_emsdk.sh ${{ matrix.emsdk_ver }} $(pwd)/emsdk_install | |
################################################################ | |
# POST ENV INSTALL CONFIG | |
################################################################ | |
- name: post env install config | |
shell: bash -el {0} | |
run: | | |
cp $GITHUB_WORKSPACE/.github/workflows/.condarc $HOME/.condarc | |
playwright install | |
################################################################ | |
# install / clone custom non-master things | |
# for pip, we use --no-deps --ignore-installed | |
# and make sure that all dependencies are already contained | |
# in the conda env named "ci-env" | |
################################################################ | |
- name: "install custom non-master dependencies" | |
shell: bash -el {0} | |
run: | | |
python -m pip install git+https://github.com/DerThorsten/boa.git@python_api_v2 --no-deps --ignore-installed | |
################################################################ | |
# run pytests | |
################################################################ | |
- name: "test config files" | |
shell: bash -el {0} | |
run: | | |
cd testing | |
pytest test_empack_config.py | |
# ################################################################ | |
# # build pyjs | |
# ################################################################ | |
# - name: "build package" | |
# shell: bash -el {0} | |
# run: | | |
# cd ${GITHUB_WORKSPACE} | |
# python builder.py build explicit $GITHUB_WORKSPACE/recipes/recipes/emscripten_emscripten-wasm32 | |
# python builder.py build explicit $GITHUB_WORKSPACE/recipes/recipes_emscripten/pyjs --emscripten-wasm32 | |
################################################################ | |
# build recipes with changes PUSH | |
################################################################ | |
- name: "build packages push" | |
shell: bash -el {0} | |
if: github.event_name == 'push' | |
run: | | |
cd ${GITHUB_WORKSPACE} | |
python builder.py build changed $GITHUB_WORKSPACE/ origin/main~1 origin/main | |
################################################################ | |
# build recipes with changes PULL_REQUEST | |
################################################################ | |
- name: "build packages pull_request" | |
shell: bash -el {0} | |
if: github.event_name == 'pull_request' | |
run: | | |
cd ${GITHUB_WORKSPACE} | |
python builder.py build changed $GITHUB_WORKSPACE/ origin/main HEAD | |
################################################################ | |
# quetz upload packages | |
################################################################ | |
- name: "quetz upload packages" | |
if: github.event_name == 'push' | |
shell: bash -el {0} | |
run: | | |
mkdir -p ${CONDA_PREFIX}/conda-bld/emscripten-wasm32 | |
mkdir -p ${CONDA_PREFIX}/conda-bld/linux-64 | |
mkdir -p ${CONDA_PREFIX}/conda-bld/noarch | |
# if [ $(ls ${CONDA_PREFIX}/conda-bld/emscripten-32/*.tar.bz2 | wc -l) -ne 0 ]; then | |
# QUETZ_API_KEY=${{ secrets.QUETZ_API_KEY}} quetz-client https://beta.mamba.pm/channels/emscripten-forge ${CONDA_PREFIX}/conda-bld/emscripten-wasm32/*.tar.bz2 | |
# fi | |
# if [ $(ls ${CONDA_PREFIX}/conda-bld/linux-64/*.tar.bz2 | wc -l) -ne 0 ]; then | |
# QUETZ_API_KEY=${{ secrets.QUETZ_API_KEY}} quetz-client https://beta.mamba.pm/channels/emscripten-forge ${CONDA_PREFIX}/conda-bld/linux-64/*.tar.bz2 | |
# fi | |
# if [ $(ls ${CONDA_PREFIX}/conda-bld/noarch/*.tar.bz2 | wc -l) -ne 0 ]; then | |
# QUETZ_API_KEY=${{ secrets.QUETZ_API_KEY}} quetz-client https://beta.mamba.pm/channels/emscripten-forge ${CONDA_PREFIX}/conda-bld/noarch/*.tar.bz2 | |
# fi |