From 7180af74d274b09182ac710208faede021153dcb Mon Sep 17 00:00:00 2001 From: qstokkink Date: Fri, 22 Nov 2024 08:46:09 +0100 Subject: [PATCH] Test pull/2695 --- .github/workflows/autobuild.yml | 59 ++++++--------------------------- 1 file changed, 10 insertions(+), 49 deletions(-) diff --git a/.github/workflows/autobuild.yml b/.github/workflows/autobuild.yml index dbab11f..64abe9d 100644 --- a/.github/workflows/autobuild.yml +++ b/.github/workflows/autobuild.yml @@ -15,20 +15,6 @@ jobs: with: image: tonistiigi/binfmt:master platforms: arm64 - - name: Build wheel - run: | - # Part of test 3 - #git clone https://github.com/marcelotduarte/cx_Freeze - #cd cx_Freeze - #python -m pip install --upgrade uv --disable-pip-version-check - #uv venv - #uv pip install "`grep cibuildwheel requirements-dev.txt`" - #source .venv/bin/activate - #export CIBW_BUILD="cp310-manylinux_aarch64" - #cibuildwheel --output-dir wheelhouse --prerelease-pythons - #cp wheelhouse/cx_Freeze-7.3.0.dev0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl ../cx_Freeze-7.3.0.dev0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl - #cd .. - #rm -rf cx_Freeze - uses: uraimo/run-on-arch-action@v2 name: Run on aarch64 id: runcmd @@ -41,48 +27,23 @@ jobs: shell: /bin/sh install: | apt-get update -q -y - apt-get install -q -y git patchelf python3-pip python-is-python3 - apt-get install -q -y libc6 + apt-get install -q -y git patchelf python3-pip python-is-python3 wget run: | cd /myproject - # --- 1. This fails: - #python -m pip install --force --no-cache --pre --extra-index-url https://marcelotduarte.github.io/packages/ cx_Freeze - # --- + wget https://raw.githubusercontent.com/marcelotduarte/cx_Freeze/refs/heads/main/requirements.txt + pip install --upgrade -r requirements.txt - # --- 2. This fails: - #python -m pip install cx_Freeze-7.3.0.dev0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl - # --- - - # --- 4. This fails - #apt-get install -q -y build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev curl git libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev - #curl https://pyenv.run | bash - #export PATH="$HOME/.pyenv/bin:$PATH" - #export PYENV_ROOT="$HOME/.pyenv" - #[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH" - #eval "$(pyenv init -)" - #pyenv install 3.10 - #pyenv local 3.10 - #python -m pip install cx_Freeze - # - - # --- 3. This works - #mkdir custom_cx_freeze - #cd custom_cx_freeze - # git clone https://github.com/marcelotduarte/cx_Freeze - # cd cx_Freeze - # python -m pip install --upgrade uv --disable-pip-version-check - # UV_RESOLUTION=highest uv pip install --system --upgrade -r requirements.txt -r requirements-dev.txt -r requirements-doc.txt - # uv pip install --system -e. --no-build-isolation --no-deps --reinstall - # cd .. - #cd .. - # --- - - # --- 5. ??? - python -m pip install cx_Freeze + pip install --pre --no-cache --upgrade -i https://test.pypi.org/simple/ cx-Freeze==7.3.0.dev1732258507 export PATH="/usr/local/bin:$PATH" python -m cx_Freeze --script main.py --target-name=executable ./$(find build -name "executable") cat success.txt + - name: Upload Artifacts + uses: actions/upload-artifact@v4 + with: + name: Build + path: | + build/**/executable \ No newline at end of file