File tree Expand file tree Collapse file tree 1 file changed +51
-0
lines changed
Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Original file line number Diff line number Diff line change 11name : build
22on : push
33
4+ permissions :
5+ contents : write
6+
47jobs :
58 build :
69 runs-on : ubuntu-latest
710 steps :
811 - uses : actions/checkout@v5
912 - run : pwd
13+
14+ - name : export
15+ run : |
16+ apt update
17+ apt install git git-lfs cmake python3 build-essential
18+
19+ - name : intsall repo
20+ run : |
21+ curl -sSL "https://storage.googleapis.com/git-repo-downloads/repo" > repo
22+ chmod +x repo
23+ mv repo /usr/local/bin
24+
25+ - name : mkdir&input
26+ run : |
27+ mkdir openvela && cd openvela
28+ repo init -u https://github.com/open-vela/manifests.git -b trunk -m openvela.xml
29+ repo sync -c -j8
30+
31+ - name : build env
32+ run : |
33+ uname_s=$(uname -s | tr '[A-Z]' '[a-z]')
34+ uname_m=$(uname -m)
35+ export PATH=$PWD/prebuilts/build-tools/${uname_s}-${uname_m}/bin:$PATH
36+ export PATH=$PWD/prebuilts/cmake/${uname_s}-${uname_m}/bin:$PATH
37+ export PATH=$PWD/prebuilts/python/${uname_s}-${uname_m}/bin:$PATH
38+ export PATH=$PWD/prebuilts/gcc/${uname_s}-${uname_m}/aarch64-none-elf/bin:$PATH
39+ export PATH=$PWD/prebuilts/gcc/${uname_s}-${uname_m}/arm-none-eabi/bin:$PATH
40+ export PYTHONPATH=$PWD/prebuilts/tools/python/dist-packages/cxxfilt
41+ export PYTHONPATH=$PWD/prebuilts/tools/python/dist-packages/kconfiglib:$PYTHONPATH
42+ export PYTHONPATH=$PWD/prebuilts/tools/python/dist-packages/pyelftools:$PYTHONPATH
43+
44+ - name : cmake
45+ run : |
46+ cmake \
47+ -B cmake_out/goldfish-arm64-v8a-ap \
48+ -S $PWD/nuttx \
49+ -GNinja \
50+ -DBOARD_CONFIG=../vendor/openvela/boards/vela/configs/goldfish-arm64-v8a-ap \
51+ -DEXTRA_FLAGS="-Wno-cpp -Wno-deprecated-declarations"
52+ cmake --build cmake_out/goldfish-arm64-v8a-ap
53+ tar -zcf build_out.tar.gz cmake_out/
54+
55+ - name : upload
56+ uses : actions/upload-artifact@v4.6.2
57+ with :
58+ name : build_output
59+ path : build_out.tar.gz
60+
You can’t perform that action at this time.
0 commit comments