99
1010jobs :
1111 build-windows :
12- name : Build Windows App
12+ name : Build Windows x64 App
1313 runs-on : windows-latest
1414 steps :
1515 - name : Checkout code
@@ -20,14 +20,14 @@ jobs:
2020 python-version : ' 3.14'
2121 - name : Install dependencies
2222 run : |
23+ python -m venv .venv
24+ .venv\Scripts\activate
2325 python -m pip install --upgrade pip
2426 pip install pyinstaller
25- # If you have requirements.txt, uncomment the next line:
2627 pip install -r requirements.txt
2728 - name : Build app with PyInstaller
2829 run : |
2930 pyinstaller ./tchMaterial-parser.spec
30- # The output binary will be in dist/tchMaterial-parser
3131 cd dist
3232 mv tchMaterial-parser.exe tchMaterial-parser-windows-x64.exe
3333 - name : Upload Release Asset
3838 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3939
4040 build-linux :
41- name : Build Linux App
41+ name : Build Linux x64 App
4242 runs-on : ubuntu-latest
4343 steps :
4444 - name : Checkout code
@@ -49,14 +49,14 @@ jobs:
4949 python-version : ' 3.14'
5050 - name : Install dependencies
5151 run : |
52+ python -m venv .venv
53+ source .venv/bin/activate
5254 python -m pip install --upgrade pip
5355 pip install pyinstaller
54- # If you have requirements.txt, uncomment the next line:
5556 pip install -r requirements.txt
5657 - name : Build app with PyInstaller
5758 run : |
5859 pyinstaller ./tchMaterial-parser.spec
59- # The output binary will be in dist/tchMaterial-parser
6060 cd dist
6161 mv tchMaterial-parser tchMaterial-parser-linux-x64
6262 - name : Upload Release Asset
6666 env :
6767 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
6868
69+ build-linux-arm64 :
70+ name : Build Linux ARM64 App
71+ runs-on : ubuntu-24.04-arm
72+ steps :
73+ - name : Checkout code
74+ uses : actions/checkout@v5
75+ - name : Set up Python
76+ uses : actions/setup-python@v6
77+ with :
78+ python-version : ' 3.14'
79+ - name : Install dependencies
80+ run : |
81+ python -m venv .venv
82+ source .venv/bin/activate
83+ python -m pip install --upgrade pip
84+ pip install pyinstaller
85+ pip install -r requirements.txt
86+ - name : Build app with PyInstaller
87+ run : |
88+ pyinstaller ./tchMaterial-parser.spec
89+ cd dist
90+ mv tchMaterial-parser tchMaterial-parser-linux-arm64
91+ - name : Upload Release Asset
92+ uses : softprops/action-gh-release@v2
93+ with :
94+ files : dist/tchMaterial-parser-linux-arm64
95+ env :
96+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
97+
6998 build-macos :
70- name : Build macOS App
99+ name : Build macOS ARM64 App
71100 runs-on : macos-latest
72101 steps :
73102 - name : Checkout code
@@ -78,16 +107,16 @@ jobs:
78107 python-version : ' 3.14'
79108 - name : Install dependencies
80109 run : |
110+ python -m venv .venv
111+ source .venv/bin/activate
81112 python -m pip install --upgrade pip
82113 pip install pyinstaller
83- # If you have requirements.txt, uncomment the next line:
84114 pip install -r requirements.txt
85115 - name : Build app with PyInstaller
86116 run : |
87117 pyinstaller ./tchMaterial-parser.spec
88- # The output binary will be in dist/tchMaterial-parser
89118 cd dist
90- mv tchMaterial-parser.app tchMaterial-parser-mac-arm64.app
119+ mv tchMaterial-parser tchMaterial-parser-mac-arm64.app
91120 - name : Upload Release Asset
92121 uses : softprops/action-gh-release@v2
93122 with :
0 commit comments