Skip to content

Commit 9df857e

Browse files
authored
Merge pull request #23 from xqyjlj/xmake-dev
适配xmake
2 parents be84092 + 97e1ec9 commit 9df857e

248 files changed

Lines changed: 4111 additions & 83253 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.config

Lines changed: 0 additions & 18 deletions
This file was deleted.

.gitattributes

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Per default everything gets normalized and gets LF line endings on checkout.
2+
* text eol=lf
3+
4+
# These are binary so should never be modified by git.
5+
*.a binary
6+
*.so binary
7+
*.png binary
8+
*.jpg binary
9+
*.pdf binary
10+
*.ico binary
11+
*.xmind binary
12+
*.bmp binary
13+
*.exe binary
14+
fatdisk-x86 binary
15+
udb binary
16+
*.lzma binary
17+
*.zip binary
18+
*.Z binary
19+
*.xz binary
20+
*.ttf binary
21+
*.mo binary
22+
*.pb binary
23+
*.tga binary
24+
xfel binary
25+
make_ext4fs* binary
26+
*.deb binary
27+
*.bin binary
28+
29+
# These should also not be modified by git.
30+
*.svg -text

.github/workflows/build.yml

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
# Licensed under the Apache License, Version 2.0 (the "License");
2+
# You may not use this file except in compliance with the License.
3+
# You may obtain a copy of the License at
4+
#
5+
# http://www.apache.org/licenses/LICENSE-2.0
6+
#
7+
# Unless required by applicable law or agreed to in writing, software
8+
# distributed under the License is distributed on an "AS IS" BASIS,
9+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10+
# See the License for the specific language governing permissions and
11+
# limitations under the License.
12+
#
13+
# Copyright (C) 2023-2023 RT-Thread Development Team
14+
#
15+
# @author xqyjlj
16+
# @file build.yml
17+
#
18+
# Change Logs:
19+
# Date Author Notes
20+
# ------------ ---------- -----------------------------------------------
21+
# 2023-06-01 xqyjlj initial version
22+
#
23+
24+
name: 👷 build
25+
26+
on:
27+
push:
28+
pull_request:
29+
30+
jobs:
31+
build-smart-apps:
32+
runs-on: ubuntu-latest
33+
strategy:
34+
matrix:
35+
arch:
36+
- aarch64
37+
- arm64
38+
- arm
39+
- riscv64gc
40+
41+
steps:
42+
- name: ⬇️ checkout
43+
uses: actions/checkout@v3
44+
with:
45+
submodules: true
46+
47+
- name: ⬇️ install xmake
48+
uses: xmake-io/github-action-setup-xmake@v1
49+
50+
- name: 👷 build
51+
shell: bash
52+
run: |
53+
export XMAKE_ROOT=y # Only need to use "--root" in CI
54+
xmake --version
55+
source env.sh
56+
pushd apps
57+
xmake f -a ${{ matrix.arch }} -vyD
58+
xmake -j$(nproc) -vyD
59+
xmake smart-rootfs -vD
60+
xmake smart-image -f ext4 -vD -o build/${{ matrix.arch }}-ext4.img
61+
popd
62+
63+
- name: ⬆️ upload artifact
64+
uses: actions/upload-artifact@v3
65+
with:
66+
name: build-smart-apps-${{ github.run_number }}
67+
path: |
68+
apps/build/cross
69+
apps/build/rootfs
70+
apps/build/*.img
71+
72+
build-linux-apps:
73+
runs-on: ubuntu-latest
74+
strategy:
75+
matrix:
76+
app:
77+
- hello
78+
- zlib
79+
80+
steps:
81+
- name: ⬇️ checkout
82+
uses: actions/checkout@v3
83+
with:
84+
submodules: true
85+
86+
- name: ⬇️ install xmake
87+
uses: xmake-io/github-action-setup-xmake@v1
88+
89+
- name: 👷 build
90+
shell: bash
91+
run: |
92+
export XMAKE_ROOT=y # Only need to use "--root" in CI
93+
xmake --version
94+
source env.sh
95+
pushd apps
96+
xmake f -a x86_64 --target_os=linux -vyD
97+
xmake -j$(nproc) -vyD ${{ matrix.app }}
98+
popd
99+
100+
- name: ⬆️ upload artifact
101+
uses: actions/upload-artifact@v3
102+
with:
103+
name: build-smart-apps-${{ github.run_number }}
104+
path: |
105+
apps/build/cross

.gitignore

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,4 @@
1-
*.pyc
2-
*.map
3-
*.dblite
4-
*.elf
5-
*.bin
6-
*.hex
7-
*.axf
8-
*.pdb
9-
*.pyc
10-
*.idb
11-
*.ilk
12-
*.old
13-
build
14-
*~
15-
*.o
16-
*.obj
17-
*.bak
18-
*.dep
19-
*.lib
20-
*.a
21-
*.i
22-
*.d
23-
GPUCache
24-
/tools/gnu_gcc
1+
build/
2+
.xmake/
3+
rootfs/
4+
.vscode/

.vscode/home.json

Lines changed: 0 additions & 50 deletions
This file was deleted.

.vscode/settings.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

.vscode/smart.json

Lines changed: 0 additions & 31 deletions
This file was deleted.

.vscode/tasks.json

Lines changed: 0 additions & 28 deletions
This file was deleted.

Kconfig

Lines changed: 0 additions & 82 deletions
This file was deleted.

0 commit comments

Comments
 (0)