@@ -10,17 +10,17 @@ permissions:
1010 contents : read
1111
1212env :
13- keymousego-version : _v5_1_1
13+ keymousego-version : _v5_2
1414
1515jobs :
1616 build-windows :
1717 runs-on : windows-latest
1818 steps :
1919 - uses : actions/checkout@main
20- - name : Set up Python 3.7
20+ - name : Set up Python 3.10
2121 uses : actions/setup-python@main
2222 with :
23- python-version : " 3.7 "
23+ python-version : " 3.10 "
2424 - name : Install dependencies
2525 run : |
2626 pip3 install -r requirements-windows.txt
@@ -41,10 +41,10 @@ jobs:
4141 runs-on : ubuntu-latest
4242 steps :
4343 - uses : actions/checkout@main
44- - name : Set up Python 3.7
44+ - name : Set up Python 3.10
4545 uses : actions/setup-python@main
4646 with :
47- python-version : " 3.7 "
47+ python-version : " 3.10.16 "
4848 - name : Install dependencies
4949 run : |
5050 pip3 install -r requirements-universal.txt
@@ -61,14 +61,38 @@ jobs:
6161 name : linux
6262 path : ${{ github.workspace }}/artifact/
6363
64+ build-linux-arm64 :
65+ runs-on : ubuntu-24.04-arm
66+ steps :
67+ - uses : actions/checkout@main
68+ - name : Set up Python 3.10
69+ uses : actions/setup-python@main
70+ with :
71+ python-version : " 3.10.16"
72+ - name : Install dependencies
73+ run : |
74+ pip3 install -r requirements-universal.txt
75+ pip3 install pyinstaller
76+ - name : Bundle Packages
77+ run : |
78+ pyinstaller -Fw --add-data './assets:assets' KeymouseGo.py
79+ - name : Copy artifact
80+ run : |
81+ mkdir artifact && mv dist/KeymouseGo ./artifact/KeymouseGo${{ env.keymousego-version }}-linux-aarch64
82+ - name : Artifact
83+ uses : actions/upload-artifact@main
84+ with :
85+ name : linux-aarch64
86+ path : ${{ github.workspace }}/artifact/
87+
6488 build-macos :
6589 runs-on : macos-latest
6690 steps :
6791 - uses : actions/checkout@main
68- - name : Set up Python 3.7
92+ - name : Set up Python 3.10
6993 uses : actions/setup-python@main
7094 with :
71- python-version : " 3.7 "
95+ python-version : " 3.10.11 "
7296 - name : Install dependencies
7397 run : |
7498 pip3 install -r requirements-universal.txt
0 commit comments