File tree Expand file tree Collapse file tree 1 file changed +32
-6
lines changed
Expand file tree Collapse file tree 1 file changed +32
-6
lines changed Original file line number Diff line number Diff line change 2828 pull_request :
2929
3030jobs :
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 :
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
You can’t perform that action at this time.
0 commit comments