File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : build_all_versions
2+
3+ on :
4+ push :
5+ branches : ["main"]
6+ jobs :
7+ build_win32 :
8+ runs-on : windows-latest
9+ steps :
10+ - uses : actions/checkout@v4
11+ - uses : ilammy/msvc-dev-cmd@v1
12+ - name : Compile
13+ shell : bash
14+ run : |
15+ python clone_and_build.py
16+ ls
17+ - uses : actions/upload-artifact@v4
18+ with :
19+ name : windows
20+ path : All_in_one
21+ build_linux :
22+ runs-on : ubuntu-22.04
23+ steps :
24+ - uses : actions/checkout@v4
25+ - name : Setup Clang
26+ uses : egor-tensin/setup-clang@v1
27+ with :
28+ version : 15
29+ platform : x64
30+ - name : Compile
31+ run : |
32+ python clone_and_build.py
33+ ls
34+ env :
35+ CC : clang
36+ - uses : actions/upload-artifact@v4
37+ with :
38+ name : linux
39+ path : All_in_one
40+ build_darwin :
41+ runs-on : macos-latest
42+ steps :
43+ - uses : actions/checkout@v4
44+ - name : Compile
45+ run : |
46+ python clone_and_build.py
47+ ls
48+ - uses : actions/upload-artifact@v4
49+ with :
50+ name : darwin
51+ path : All_in_one
52+
53+ merge :
54+ runs-on : ubuntu-latest
55+ needs : [ build_win32, build_linux, build_darwin ]
56+ steps :
57+ - name : " Create output directory"
58+ run : " mkdir $GITHUB_WORKSPACE/output"
59+
60+ - name : " Merge win32"
61+ uses : actions/download-artifact@v4.1.7
62+ with :
63+ name : windows
64+ path : $GITHUB_WORKSPACE/output/windows_x86_64
65+
66+ - name : " Merge linux"
67+ uses : actions/download-artifact@v4.1.7
68+ with :
69+ name : linux
70+ path : $GITHUB_WORKSPACE/output/linux_x86_64
71+
72+ - name : " Merge darwin"
73+ uses : actions/download-artifact@v4.1.7
74+ with :
75+ name : darwin
76+ path : $GITHUB_WORKSPACE/output/darwin
77+
78+ - name : " Upload merged artifact"
79+ uses : actions/upload-artifact@v4.3.3
80+ with :
81+ name : all-in-one
82+ path : $GITHUB_WORKSPACE/output
183
You can’t perform that action at this time.
0 commit comments