-
Notifications
You must be signed in to change notification settings - Fork 437
89 lines (86 loc) · 2.72 KB
/
build.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: Build Mu
on:
push:
branches: 'master'
pull_request:
branches: '*'
jobs:
build:
strategy:
matrix:
os: [macos-11, windows-2019]
fail-fast: false
runs-on: ${{ matrix.os }}
name: Build ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.8'
- name: Display Python info
run: |
python -c "import sys; print(sys.version)"
python -c "import platform, struct; print(platform.machine(), struct.calcsize('P') * 8)"
python -c "import sys; print(sys.executable)"
python -m pip --version
pip --version
pip config list
pip freeze
- name: Install Mu test dependencies
run: |
pip install .[tests]
pip list
- run: mkdir upload
- name: Build Windows 64 bit
if: runner.os == 'Windows'
run: |
python make.py win64
dir dist/*.msi | rename-item -newname { $_.name -replace ".msi"," (64 bit).msi" }
mv dist/*.msi upload/
- name: Build macOS
if: runner.os == 'macOS'
run: |
make macos
mv dist/*.dmg upload/
- name: Upload Mu installer
uses: actions/upload-artifact@v3
with:
name: mu-editor-${{ runner.os }}-${{ github.sha }}
path: upload
build-linux:
runs-on: ubuntu-latest
container:
image: ghcr.io/mu-editor/mu-appimage:2022.05.01
name: Build AppImage
steps:
- uses: actions/checkout@v3
- name: Display system info
run: |
uname -a
cat /etc/lsb-release
python -c "import sys; print(sys.version)"
python -c "import platform, struct; print(platform.machine(), struct.calcsize('P') * 8)"
python -c "import sys; print(sys.executable)"
python -m pip --version
pip --version
pip list --verbose
- name: Install Mu test dependencies
run: |
pip install .[tests]
pip list
- run: mkdir upload
- name: Build Linux AppImage
run: QT_QPA_PLATFORM=offscreen make linux
# GitHub actions upload artifact breaks permissions, workaround using tar
# https://github.com/actions/upload-artifact/issues/38
- name: Tar AppImage to maintain permissions
run: |
cd dist/
tar -cvf Mu_Editor-AppImage-x86_64-${{ github.sha }}.tar *.AppImage
ls -la .
- name: Upload Mu AppImage
uses: actions/upload-artifact@v3
with:
name: mu-editor-${{ runner.os }}-${{ github.sha }}
path: dist/Mu_Editor-AppImage-x86_64-${{ github.sha }}.tar