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 28
28
pull_request :
29
29
30
30
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
+
31
62
build-linux-apps :
32
63
runs-on : ubuntu-latest
33
64
strategy :
55
86
xmake --version
56
87
source env.sh
57
88
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
64
90
xmake f -a x86_64 --target_os=linux -vyD
65
91
xmake -j$(nproc) -vyD -P .
66
92
popd
You can’t perform that action at this time.
0 commit comments