Skip to content

Commit ac5ca59

Browse files
committed
- spliting out solutions for better coordination
1 parent eb96951 commit ac5ca59

File tree

9 files changed

+55
-69
lines changed

9 files changed

+55
-69
lines changed

.github/workflows/freeze.yaml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: frozen app using cx_freeze on ubuntu
1+
name: frozen app using cx_freeze on ubuntu using setup.py
22
on:
33
push:
44
branches: [ "main" ]
@@ -24,19 +24,22 @@ jobs:
2424

2525
- name: basic
2626
run: |
27+
cd cx_Freeze
2728
python -m venv venv
2829
source venv/bin/activate
2930
pip install robotframework cx_Freeze
30-
cp $(which robot) robot
31-
python setup.py build
32-
cd examples/basic
33-
../../build/*/robot_run .
31+
python setup_basic.py build || true
32+
- name: basic_run
33+
run: |
34+
./cx_Freeze/build/*/robot_run_basic examples/basic/
35+
3436
- name: numpy
3537
run: |
36-
python -m venv venv
38+
cd cx_Freeze
39+
python3 -m venv venv
3740
source venv/bin/activate
38-
pip install robotframework cx_Freeze numpy pandas
39-
cp $(which robot) robot
40-
python setup2.py build
41-
cd examples/numpy
42-
../../build/*/robot_run .
41+
pip install robotframework cx_Freeze pandas numpy
42+
python setup_numpy.py build
43+
- name: numpy_run
44+
run: |
45+
./cx_Freeze/build/*/robot_run_numpy examples/numpy/

.github/workflows/freeze_check_cx_freeze_pr.yaml

Lines changed: 0 additions & 45 deletions
This file was deleted.

.github/workflows/linux.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: frozen app with cx_freeze on linux
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
schedule:
7+
- cron: '0 0 * * 0' # This runs the workflow every Sunday at midnight UTC
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
matrix:
15+
os: [ubuntu-latest]
16+
17+
steps:
18+
- name: Check out repository
19+
uses: actions/checkout@v2
20+
21+
- uses: astral-sh/setup-uv@v1
22+
with:
23+
version: "latest"
24+
25+
- name: basic
26+
run: |
27+
cd cx_Freeze_win
28+
uvx --from cx_Freeze --with numpy,pandas,robotframework cxfreeze build || true
29+
build/*/robot ../examples/

.github/workflows/win.yaml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,12 @@ jobs:
1818
- name: Check out repository
1919
uses: actions/checkout@v2
2020

21-
- name: Set up Python
22-
uses: actions/setup-python@v2
21+
- uses: astral-sh/setup-uv@v1
2322
with:
24-
python-version: '3.12'
23+
version: "latest"
2524

2625
- name: basic
2726
run: |
28-
python -m venv venv
29-
venv/Scripts/activate
30-
pip install robotframework cx_Freeze numpy pandas
31-
cxfreeze build
32-
cd examples/basic
33-
../../build/exe.win-amd64-3.12/robot.exe .
34-
cd ../../examples/numpy
35-
../../build/exe.win-amd64-3.12/robot.exe .
27+
cd cx_Freeze_win
28+
uvx --from cx_Freeze --with numpy,pandas,robotframework cxfreeze build || true
29+
build/exe.win-amd64-3.9/robot.exe ../examples/
File renamed without changes.

setup.py renamed to cx_Freeze/setup_basic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
base = 'console'
88

99
executables = [
10-
Executable('robot', base=base, target_name = 'robot_run')
10+
Executable('robot_starter.py', base=base, target_name = 'robot_run_basic')
1111
]
1212

1313
setup(name='robot',

setup2.py renamed to cx_Freeze/setup_numpy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
base = 'console'
88

99
executables = [
10-
Executable('robot', base=base, target_name = 'robot_run')
10+
Executable('robot_starter.py', base=base, target_name = 'robot_run_numpy')
1111
]
1212

1313
setup(name='robot',
File renamed without changes.

cx_Freeze_win/robot_starter.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from robot import run_cli
2+
import sys
3+
4+
if __name__ == '__main__':
5+
run_cli(sys.argv[1:])

0 commit comments

Comments
 (0)