Skip to content

Commit 63c87ec

Browse files
committed
test
1 parent 78b2d18 commit 63c87ec

File tree

1 file changed

+7
-32
lines changed

1 file changed

+7
-32
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -28,37 +28,6 @@ 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-
6231
build-linux-apps:
6332
runs-on: ubuntu-latest
6433
strategy:
@@ -85,7 +54,13 @@ jobs:
8554
export XMAKE_ROOT=y # Only need to use "--root" in CI
8655
xmake --version
8756
source env.sh
88-
pushd apps/${{ matrix.app }}
57+
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
8964
xmake f -a x86_64 --target_os=linux -vyD
9065
xmake -j$(nproc) -vyD -P .
9166
popd

0 commit comments

Comments
 (0)