-
Notifications
You must be signed in to change notification settings - Fork 38
80 lines (68 loc) · 2.4 KB
/
Copy pathtest.yml
File metadata and controls
80 lines (68 loc) · 2.4 KB
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
name: Test All Builds
on:
workflow_dispatch:
env:
DIST_DIR: /tmp/builds
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- os: windows-latest
build: win-x64
file_name: win_amd64
- os: macos-latest
build: osx-arm64
file_name: macos_arm64
- os: macos-13
build: macos-amd64
file_name: macos_amd64
runs-on: ${{ matrix.os }}
steps:
- name: Check out the repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.12.8
cache: "pip"
- name: Install required modules globally
run: |
pip install requests
- name: Run build script
run: |
python build.py
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: build-artifacts-${{ matrix.file_name }}
path: |
AutoSubSync-*.zip
AutoSubSync-*.AppImage
build-linux-ubuntu:
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v4
- name: Build using build.py with Python 3.12
run: |
docker run --rm -v ${{ github.workspace }}:/workspace -w /workspace \
--env DEBIAN_FRONTEND=noninteractive \
--env TZ=Etc/UTC \
--privileged \
--entrypoint bash \
python:3.12.8-slim \
-c "apt-get update && \
apt-get install -y tzdata file fuse libfuse2 tk-dev libglib2.0-0 libxkbcommon-x11-0 libxcb-xinerama0 libxcb-cursor0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-shape0 libxcb-xfixes0 libxcb-xkb1 libxrender1 libsm6 libxext6 libx11-xcb1 libdbus-1-3 libxcb-sync1 libxcb-glx0 libgdk-pixbuf2.0-0 libgtk-3-0 libpango-1.0-0 libcairo2 libatk1.0-0 libpangocairo-1.0-0 libcairo-gobject2 && \
echo 'GLIBC Version:' && \
ldd --version | head -n 1 && \
pip install --upgrade pip setuptools wheel requests pyinstaller && \
python build.py"
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: build-artifacts-linux_amd64
path: |
AutoSubSync-linux-*.AppImage
AutoSubSync-linux-*.tar.gz