@@ -3,25 +3,30 @@ name: Simple Package — Sequential macOS arm64 & Windows x64
33on :
44 workflow_dispatch : # manual trigger
55 push :
6- tags : ['v*' ]
6+ tags : ["v*" ]
77
88jobs :
99 build-macos-arm64 :
1010 name : Build macOS arm64
11- runs-on : macos-14
11+ runs-on : macos-latest
1212 steps :
1313 - name : Check out
1414 uses : actions/checkout@v4
15+
1516 - name : Show runner arch
1617 run : uname -m || true
1718 - name : Setup Python
1819 uses : actions/setup-python@v4
1920 with :
20- python-version : ' 3.11'
21+ python-version : " 3.11"
22+
23+ # Exercise 1: Implement dependency installation here
2124 - name : Install deps
2225 run : |
2326 python -m pip install --upgrade pip
24- pip install -r requirements.txt
27+ echo "TODO: Achieve pip requirements installation over here"
28+
29+ # Remember to add a -n parameter to name the output binary appropriately for each platform
2530 - name : Build with PyInstaller (macOS arm64)
2631 run : |
2732 pyinstaller --onefile app/hello.py -n hello-macos-arm64
@@ -42,20 +47,26 @@ jobs:
4247 - name : Setup Python
4348 uses : actions/setup-python@v4
4449 with :
45- python-version : ' 3.11'
50+ python-version : " 3.11"
51+
4652 - name : Install deps
4753 run : |
4854 python -m pip install --upgrade pip
4955 pip install -r requirements.txt
50- - name : Build with PyInstaller (Windows x64)
51- shell : pwsh
52- run : |
53- pyinstaller --onefile app/hello.py -n hello-windows-x64
56+
57+ # Exercise 2: Implement Windows build steps here
58+ # You can refer to the macOS build steps above for guidance
59+ # - name: Build with PyInstaller (Windows x64)
60+ # ...
61+
5462 - name : Debug dist
5563 shell : pwsh
5664 run : dir dist || true
57- - name : Upload Windows artifact
58- uses : actions/upload-artifact@v4
59- with :
60- name : hello-windows-x64
61- path : dist/hello-windows-x64.exe
65+
66+ # Exercise 3: Implement artifact upload here
67+ # - name: Upload Windows artifact
68+ # uses: actions/upload-artifact@v4
69+ # with:
70+ # name: hello-windows-x64
71+ # path: # TODO: Specify the path to the Windows build artifact here.
72+ # it is a file with .exe extension named by you under `dist/`, generated in Exercise 2
0 commit comments