File tree 1 file changed +24
-0
lines changed
1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -33,12 +33,25 @@ jobs:
33
33
sudo apt install -y ruby ruby-dev rubygems build-essential llvm libc++-dev
34
34
sudo apt install -y libgl1-mesa-dev libglu1-mesa-dev
35
35
clang --version
36
+ xrepo install zig
36
37
37
38
- name : Tests
38
39
run : |
39
40
xmake lua -v -D tests/run.lua
40
41
xrepo --version
41
42
43
+ - name : Artifact
44
+ run : |
45
+ cd core
46
+ xrepo env -b zig xmake f --embed=y --toolchain=zig --cross=x86_64-linux-gnu.2.29 -c
47
+ xmake
48
+ cp build/xmake ../artifacts/xmake-bundle
49
+ cd ..
50
+ - uses : actions/upload-artifact@v4
51
+ with :
52
+ name : xmake-bundle.linux.x86_64
53
+ path : artifacts/xmake-bundle
54
+
42
55
- name : Publish
43
56
if : github.event.action == 'published'
44
57
env :
57
70
scripts/makeppa bionic # 18.04
58
71
scripts/makeppa xenial # 16.04
59
72
scripts/makeppa trusty # 14.04
73
+
74
+ - name : Publish bundle binary
75
+ if : github.event.action == 'published'
76
+
77
+ env :
78
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
79
+ with :
80
+ upload_url : ${{ github.event.release.upload_url }}
81
+ asset_path : artifacts/xmake-bundle
82
+ asset_name : xmake-bundle-${{ steps.tagName.outputs.tag }}.linux.x86_64
83
+ asset_content_type : application/zip
You can’t perform that action at this time.
0 commit comments