-
Notifications
You must be signed in to change notification settings - Fork 0
83 lines (76 loc) · 3.16 KB
/
autobuild.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: Autobuild
on:
push:
jobs:
aarch64_job:
runs-on: ubuntu-22.04
name: Build on ubuntu22.04 aarch64
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: |
# 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
with:
arch: aarch64
distro: ubuntu22.04
githubToken: ${{ github.token }}
dockerRunArgs: |
--volume "${PWD}:/myproject"
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 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
run: |
cd /myproject
# --- 1. This fails:
#python -m pip install --force --no-cache --pre --extra-index-url https://marcelotduarte.github.io/packages/ cx_Freeze
# ---
# --- 2. This fails:
#python -m pip install cx_Freeze-7.3.0.dev0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
# ---
# --- 4. ???
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 ..
# ---
export PATH="/usr/local/bin:$PATH"
python -m cx_Freeze --script main.py --target-name=executable
./$(find build -name "executable")
cat success.txt