| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- kind: pipeline
- type: exec
- name: shell
- concurrency:
- limit: 1
- platform:
- os: linux
- arch: amd64
- steps:
- - name: build 101
- commands:
- - cd ..
- - mv src/ LuatOS/
- - mkdir src
- - git clone --branch=master https://gitee.com/openLuat/luatos-soc-air101.git air101
- - cd air101
- - cp /hdd/ci/build/wm_tool ./tools/xt804/
- - export XMAKE_BINARY_REPO=https://gitee.com/xmake-mirror/build-artifacts.git
- - export XMAKE_MAIN_REPO=https://gitee.com/tboox/xmake-repo.git
- - /home/chenxu/.local/bin/xmake g --pkg_searchdirs=/hdd/ci/build --root
- - /home/chenxu/.local/bin/xmake -y --root
- - 7z x build/out/*.soc
- - ls build/out/ -la
- - cd mklfs/disk
- - rm -rf *
- - cd -
- - cd ..
- - git clone https://gitee.com/HashJeremy/luatos-test.git
- - cd luatos-test/luatos-soc-ci/script
- - rename 's/\.lua//' *.lua
- - cd -
- - for file in `ls luatos-test/luatos-soc-ci/script`; do cp luatos-test/luatos-soc-ci/script/$file air101/mklfs/disk; done
- - cd air101/mklfs/disk
- - ls
- - for file in `ls`; do /hdd/ci/build/luac_536_32bits -o $file.luac $file; done
- - ls
- - cd ..
- - python3 /hdd/ci/build/luadb.py disk/
- - cd ..
- - datename=$(date +%Y%m%d-%H%M%S)
- - mkdir /hdd/ci/fw_bak/$datename
- - cp build/out/AIR101.fls /hdd/ci/fw_bak/$datename/AIR101.fls
- - cp mklfs/disk.fs build/out/script.bin
- - /hdd/ci/build/wm_tool -b build/out/script.bin -it 1 -fc 0 -ih 20008000 -ra 81E0000 -ua 0 -nh 0 -un 0 -o build/out/script
- - ls build/out/ -la
- - cp build/out/script.img /hdd/ci/fw_bak/$datename/script.img
- - cat build/out/script.img >> build/out/AIR101.fls
- - cp build/out/AIR101.fls /hdd/ci/fw_bak/$datename/all.fls
- - ls build/out/ -la
- - rm /hdd/ci/flash/*
- - cp build/out/AIR101.fls /hdd/ci/flash
- - name: flash
- commands:
- - /hdd/ci/build/wm_tool -ds 921600 -ws 115200 -c ttyUSB0 -rs rts -dl /hdd/ci/flash/AIR101.fls
- - name: test
- commands:
- - /hdd/ci/build/uart_check --port /dev/ttyUSB0
- - name: notify
- when:
- status:
- - failure
- environment:
- token:
- from_secret: github_token
- commands:
- - "curl -X POST -H \"Accept: application/vnd.github.v3+json\" https://api.github.com/repos/openLuat/LuatOS/dispatches -H \"Authorization: token $token \" -d '{\"event_type\": \"webhook_air101ci_notify\"}'"
|