-
Notifications
You must be signed in to change notification settings - Fork 0
132 lines (113 loc) · 4.72 KB
/
build-iOS.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
name: Build iOS
on: [push]
env:
KIVY_GL_BACKEND: angle_sdl2
# https://github.com/Alb-310/Geogramint/issues/8#issuecomment-1366548008
jobs:
Build-iOS:
runs-on: macos-latest
# runs-on: macos-13
steps:
- name: Checkout
uses: actions/checkout@v4
- name: setup python
uses: actions/setup-python@v5
with:
# python-version: "3.x"
python-version: "3.12"
# python-version: "3.10"
# Prerequisites
# - name: Prerequisites 0
# run: brew install brew-cask-completion
# - name: Prerequisites 1
# run: brew install --cask brewlet
- name: Prerequisites 2
run: brew install autoconf automake libtool pkg-config
- name: Prerequisites 3
run: brew link libtool
- name: install pip packages - macos
run: pip install -r build_requirements/pip_requirements-ios.txt
- name: install pip packages - kivy
run: pip install -r build_requirements/pip_requirements.txt
# - name: xcode build numpy
# run: toolchain build numpy
- name: create xcode project
run: toolchain create ImgSplitter $(pwd)/src
- name: show files
run:
pwd
ls -lah
- name: open xcode project
run: open ImgSplitter-ios/ImgSplitter.xcodeproj
- name: xcode build?
run: toolchain update ImgSplitter-ios
- name: xcode build kivy
run: toolchain build kivy
- name: Archive xcode project
uses: actions/upload-artifact@v4
with:
name: xcode-ios
path: ImgSplitter-ios
# - name: macos - build dependacies
# # run: brew reinstall --build-from-source sdl2 sdl2_image sdl2_ttf sdl2_mixer
# run: brew reinstall sdl2 sdl2_image sdl2_ttf sdl2_mixer
#
# - name: install pip packages - macos
# run: pip install -r build_requirements/pip_requirements-macos.txt
# - name: install pip packages - kivy
# run: pip install -r build_requirements/pip_requirements.txt
#
# - name: copy spec file
# run: cp build_requirements/ImgSplitter-macos-onefile.spec.src ImgSplitter.spec
#
# # - name: build
# # run: python -m PyInstaller --name ImgSplitter src/main.py
# # run: python -m PyInstaller --onefile --name ImgSplitter src/main.py
# # python -m PyInstaller --name ImgSplitter --icon path/to/icon.ico src/main.py
#
# # - name: generate spec
# # # run: pyinstaller -y --clean --windowed --name ImgSplitter --exclude-module _tkinter --exclude-module Tkinter --exclude-module enchant --exclude-module twisted --target-arch universal2 src/main.py
# # # run: pyinstaller -y --clean --windowed --name ImgSplitter --exclude-module _tkinter --exclude-module Tkinter --exclude-module enchant --exclude-module twisted --target-arch x86_64 src/main.py
# # run: pyinstaller -y --clean --windowed --name ImgSplitter --exclude-module _tkinter --exclude-module Tkinter --exclude-module enchant --exclude-module twisted --target-arch arm64 src/main.py
# #
# # - name: Archive Manager spec
# # uses: actions/upload-artifact@v4
# # with:
# # name: spec-macos
# # path: ImgSplitter.spec
#
# # --target-architecture ARCH, --target-arch ARCH
# # Target architecture (macOS only; valid values: x86_64, arm64, universal2). Enables switching between universal2 and single-arch version of frozen application (provided
# # python installation supports the target architecture). If not target architecture is not specified, the current running architecture is targeted.
#
# - name: build spec
# # run: python -m PyInstaller ImgSplitter.spec
# run: PyInstaller -y --clean ImgSplitter.spec
# # run: PyInstaller -y --clean --target-arch universal2 ImgSplitter.spec
# # run: pyinstaller -y --clean --windowed ImgSplitter.spec
#
# - name: Archive Manager Build
# uses: actions/upload-artifact@v4
# with:
# name: build-macos
# path: build
#
# - name: Archive Manager dist
# uses: actions/upload-artifact@v4
# with:
# name: dist-macos
# path: dist
#
# - name: Create DMG File
# # run:
# # pushd dist
# # hdiutil create ./ImgSplitter.dmg -srcfolder ImgSplitter.app -ov
# # popd
# run:
# hdiutil create ./ImgSplitter.dmg -srcfolder dist/ImgSplitter.app -ov
#
# - name: Archive Manager dmg
# uses: actions/upload-artifact@v4
# with:
# name: dmg-macos
# path: ImgSplitter.dmg