@@ -90,50 +90,50 @@ jobs:
9090
9191 build-macos :
9292 runs-on : macos-14
93- steps :
94- - name : Setup tmate session
95- uses : mxschmitt/action-tmate@v3
96- with :
97- detached : true
98- # if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
93+ steps :
94+ - name : Setup tmate session
95+ uses : mxschmitt/action-tmate@v3
96+ with :
97+ detached : true
98+ # if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
99+
100+ - name : Checkout code
101+ uses : actions/checkout@v4
102+ with :
103+ submodules : recursive # Initializes and updates submodules
99104
100- - name : Checkout code
101- uses : actions/checkout@v4
102- with :
103- submodules : recursive # Initializes and updates submodules
105+ - name : Set up Python
106+ uses : actions/setup-python@v5
107+ with :
108+ python-version : " 3.10 " # Specify your Python version
104109
105- - name : Set up Python
106- uses : actions/setup-python@v5
107- with :
108- python-version : " 3.10" # Specify your Python version
110+ - name : Check if Python is a fat binary
111+ run : |
112+ if lipo -info $(which python3) | grep -q "Architectures in the fat file"; then
113+ lipo -info $(which python3)
114+ echo "Python is a fat binary."
115+ else
116+ echo "Python is NOT a fat binary."
117+ exit 1 # Optional: Exit with error if you require a fat binary
118+ fi
109119
110- - name : Check if Python is a fat binary
111- run : |
112- if lipo -info $(which python3) | grep -q "Architectures in the fat file"; then
113- lipo -info $(which python3)
114- echo "Python is a fat binary."
115- else
116- echo "Python is NOT a fat binary."
117- exit 1 # Optional: Exit with error if you require a fat binary
118- fi
120+ - name : Install Homebrew dependencies
121+ run : |
122+ brew update
123+ brew install sdl2 sdl2_image sdl2_mixer sdl2_ttf
119124
120- - name : Install Homebrew dependencies
121- run : |
122- brew update
123- brew install sdl2 sdl2_image sdl2_mixer sdl2_ttf
124-
125- - name : Install dependencies
126- run : |
127- python -m pip install --upgrade pip
128- python -m pip install -r requirements.txt
125+ - name : Install dependencies
126+ run : |
127+ python -m pip install --upgrade pip
128+ python -m pip install -r requirements.txt
129129
130- - name : Build executable with PyInstaller
131- run : |
132- cd package
133- python -m pyinstaller --noconfirm cogmood_mac.spec
130+ - name : Build executable with PyInstaller
131+ run : |
132+ cd package
133+ python -m pyinstaller --noconfirm cogmood_mac.spec
134134
135- - name : Upload macOS executable
136- uses : actions/upload-artifact@v4
137- with :
138- name : SUPREME
139- path : dist/SUPREME
135+ - name : Upload macOS executable
136+ uses : actions/upload-artifact@v4
137+ with :
138+ name : SUPREME
139+ path : dist/SUPREME
0 commit comments