Skip to content

Commit 7efc6dd

Browse files
committed
123
1 parent 4a1d68f commit 7efc6dd

File tree

2 files changed

+38
-4
lines changed

2 files changed

+38
-4
lines changed

.github/workflows/build.yml

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ jobs:
3333
strategy:
3434
matrix:
3535
arch:
36+
- aarch64
37+
- arm
3638
- riscv64gc
3739

3840
steps:
@@ -51,10 +53,40 @@ jobs:
5153
xmake --version
5254
source env.sh
5355
pushd apps
54-
echo "includes(path.join(path.join(os.scriptdir(), \"player\"), \"xmake.lua\"))" > xmake.lua
5556
xmake f -a ${{ matrix.arch }} -vyD
5657
xmake -j$(nproc) -vyD
5758
xmake smart-rootfs -vD
5859
xmake smart-image -f ext4 -vD -o build/${{ matrix.arch }}-ext4.img
5960
popd
6061
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

repo/packages/s/sdl2/xmake.lua

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,14 @@ do
7777
table.insert(configs, "--enable-video-rtt-touch=no")
7878
table.insert(configs, "--enable-video-rtt-fbdev=yes")
7979

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})
8284

8385
end)
8486

8587
on_test(function(package)
86-
-- assert(package:has_cfuncs("SDL_Init", {includes = {"SDL.h"}}))
88+
assert(package:has_cfuncs("SDL_Init", {includes = {"SDL.h"}}))
8789
end)
8890
end

0 commit comments

Comments
 (0)