Skip to content

Commit 12e2684

Browse files
committed
test
1 parent 63c87ec commit 12e2684

File tree

1 file changed

+32
-6
lines changed

1 file changed

+32
-6
lines changed

.github/workflows/build.yml

Lines changed: 32 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,37 @@ on:
2828
pull_request:
2929

3030
jobs:
31+
build-smart-apps:
32+
runs-on: ubuntu-latest
33+
strategy:
34+
matrix:
35+
arch:
36+
- aarch64
37+
- arm
38+
- riscv64gc
39+
40+
steps:
41+
- name: ⬇️ checkout
42+
uses: actions/checkout@v3
43+
with:
44+
submodules: true
45+
46+
- name: ⬇️ install xmake
47+
uses: xmake-io/github-action-setup-xmake@v1
48+
49+
- name: 👷 build
50+
shell: bash
51+
run: |
52+
export XMAKE_ROOT=y # Only need to use "--root" in CI
53+
xmake --version
54+
source env.sh
55+
pushd apps
56+
xmake f -a ${{ matrix.arch }} -vyD
57+
xmake -j$(nproc) -vyD
58+
xmake smart-rootfs -vD
59+
xmake smart-image -f ext4 -vD -o build/${{ matrix.arch }}-ext4.img
60+
popd
61+
3162
build-linux-apps:
3263
runs-on: ubuntu-latest
3364
strategy:
@@ -55,12 +86,7 @@ jobs:
5586
xmake --version
5687
source env.sh
5788
pushd apps
58-
cat > apps.lua << EOF
59-
local packagefile = path.join(path.join(os.scriptdir(), "${{ matrix.app }}"), "xmake.lua")
60-
if os.isfile(packagefile) then
61-
includes(packagefile)
62-
end
63-
EOF
89+
echo "includes(path.join(path.join(os.scriptdir(), "${{ matrix.app }}"), "xmake.lua"))" > xmake.lua
6490
xmake f -a x86_64 --target_os=linux -vyD
6591
xmake -j$(nproc) -vyD -P .
6692
popd

0 commit comments

Comments
 (0)