Skip to content

Commit

Permalink
Build and install cx_Freeze wheel
Browse files Browse the repository at this point in the history
  • Loading branch information
qstokkink committed Oct 27, 2024
1 parent 072af75 commit cc4daf5
Showing 1 changed file with 35 additions and 14 deletions.
49 changes: 35 additions & 14 deletions .github/workflows/autobuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,26 @@ jobs:
steps:
- name: Check-out repository
uses: actions/checkout@v4
- name: Set up QEMU
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v3
with:
platforms: arm64
- name: Build wheel
run: |
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: Compile aarch64
name: Run on aarch64
id: runcmd
with:
arch: aarch64
Expand All @@ -26,24 +44,27 @@ jobs:
cd /myproject
# --- This fails:
# python -m pip install --force --no-cache --pre --extra-index-url https://marcelotduarte.github.io/packages/ cx_Freeze
#python -m pip install --force --no-cache --pre --extra-index-url https://marcelotduarte.github.io/packages/ cx_Freeze
# ---
# --- This fails:
python -m pip install cx_Freeze-7.3.0.dev0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
# ---
# --- 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 ..
#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 ..
# ---
export PATH="/usr/local/bin:$PATH"
python -m cx_Freeze --script main.py --target-name=executable
./$(find build -name "executable")
./$(find build -name "executable")
cat success.txt

0 comments on commit cc4daf5

Please sign in to comment.