File tree Expand file tree Collapse file tree 2 files changed +38
-4
lines changed Expand file tree Collapse file tree 2 files changed +38
-4
lines changed Original file line number Diff line number Diff line change 33
33
strategy :
34
34
matrix :
35
35
arch :
36
+ - aarch64
37
+ - arm
36
38
- riscv64gc
37
39
38
40
steps :
@@ -51,10 +53,40 @@ jobs:
51
53
xmake --version
52
54
source env.sh
53
55
pushd apps
54
- echo "includes(path.join(path.join(os.scriptdir(), \"player\"), \"xmake.lua\"))" > xmake.lua
55
56
xmake f -a ${{ matrix.arch }} -vyD
56
57
xmake -j$(nproc) -vyD
57
58
xmake smart-rootfs -vD
58
59
xmake smart-image -f ext4 -vD -o build/${{ matrix.arch }}-ext4.img
59
60
popd
60
61
62
+ build-linux-apps :
63
+ runs-on : ubuntu-latest
64
+ strategy :
65
+ matrix :
66
+ app :
67
+ - busybox
68
+ - cpp
69
+ - hello
70
+ - micropython
71
+ - zlib
72
+
73
+ steps :
74
+ - name : ⬇️ checkout
75
+ uses : actions/checkout@v3
76
+ with :
77
+ submodules : true
78
+
79
+ - name : ⬇️ install xmake
80
+ uses : xmake-io/github-action-setup-xmake@v1
81
+
82
+ - name : 👷 build
83
+ shell : bash
84
+ run : |
85
+ export XMAKE_ROOT=y # Only need to use "--root" in CI
86
+ xmake --version
87
+ source env.sh
88
+ pushd apps
89
+ echo "includes(path.join(path.join(os.scriptdir(), \"${{ matrix.app }}\"), \"xmake.lua\"))" > xmake.lua
90
+ xmake f -a x86_64 --target_os=linux -vyD
91
+ xmake -j$(nproc) -vyD -P .
92
+ popd
Original file line number Diff line number Diff line change 77
77
table.insert (configs , " --enable-video-rtt-touch=no" )
78
78
table.insert (configs , " --enable-video-rtt-fbdev=yes" )
79
79
80
- import (" package.tools.autoconf" ).configure (package , configs )
81
- import (" package.tools.make" ).install (package )
80
+ local buildenvs = import (" package.tools.autoconf" ).buildenvs (package , {ldflags = ldflags })
81
+ os .vrun (" ./autogen.sh" , {envs = buildenvs })
82
+ import (" package.tools.autoconf" ).configure (package , configs , {envs = buildenvs })
83
+ import (" package.tools.make" ).install (package , {}, {envs = buildenvs })
82
84
83
85
end )
84
86
85
87
on_test (function (package )
86
- -- assert(package:has_cfuncs("SDL_Init", {includes = {"SDL.h"}}))
88
+ assert (package :has_cfuncs (" SDL_Init" , {includes = {" SDL.h" }}))
87
89
end )
88
90
end
You can’t perform that action at this time.
0 commit comments