-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (42 loc) · 1.67 KB
/
macos-linuxinstaller.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
name: Automatic CipherOS Builder
on:
push:
branches:
- main
jobs:
test-and-build:
strategy:
matrix:
os: [ubuntu-latest,macos-latest]
arch: [x64, arm64, x32]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.13'
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install urllib3 progressbar3 colorama requests
- name: Run Compilation Script
shell: bash
run: |
OUTPUT_DIR="installers/${{ matrix.os }}/${{ matrix.arch }}"
mkdir -p "$OUTPUT_DIR"
if [[ "${{ matrix.os }}" == "ubuntu-latest" ]]; then
echo "Compiling for Linux (${RUNNER_ARCH})..."
pyinstaller installer.py --distpath "$OUTPUT_DIR" --onefile --icon="./icon.ico" --name="linux-${{ matrix.arch }}-installer"
chmod +x installers/${{ matrix.os }}/${{ matrix.arch }}/linux-${{ matrix.arch }}-installer
elif [[ "${{ matrix.os }}" == "macos-latest" ]]; then
echo "Compiling for macOS (${RUNNER_ARCH})..."
pyinstaller installer.py --distpath "$OUTPUT_DIR" --onefile --icon="./icon.ico" --name="macos-${{ matrix.arch }}-installer"
chmod +x installers/${{ matrix.os }}/${{ matrix.arch }}/macos-${{ matrix.arch }}-installer
fi
- name: Upload Build Artifacts
uses: actions/upload-artifact@v3
with:
name: "${{ matrix.os }}-${{ matrix.arch }}-build"
path: "installers/${{ matrix.os }}/${{ matrix.arch }}"