1
0
mirror of https://github.com/elua/elua.git synced 2025-01-25 01:02:54 +08:00
elua/.circleci/config.yml

43 lines
1.6 KiB
YAML
Raw Normal View History

2018-05-19 16:43:54 +03:00
version: 2
jobs:
build:
docker:
- image: circleci/python:2.7-stretch
2018-05-19 16:43:54 +03:00
steps:
- checkout
- restore_cache:
key: bindir
2018-05-19 16:43:54 +03:00
- run:
name: Install extra software
command: |
sudo apt-get install lua5.1
sudo apt-get install luarocks
sudo luarocks install luafilesystem
sudo luarocks install lpack
sudo luarocks install md5
if [ ! -d bin ]; then
mkdir bin
cd bin
wget https://developer.arm.com/-/media/Files/downloads/gnu-rm/7-2017q4/gcc-arm-none-eabi-7-2017-q4-major-linux.tar.bz2
tar xvfj gcc-arm-none-eabi-7-2017-q4-major-linux.tar.bz2
fi
- save_cache:
key: bindir
paths:
- "bin"
2018-05-19 16:43:54 +03:00
- run:
name: Build cross compiler
command: lua cross-lua.lua
- run:
name: Build eLua for EK-LM3S8962
command: PATH=$PATH:$(readlink -f bin/gcc-arm-none-eabi-7-2017-q4-major/bin) lua build_elua.lua board=ek-lm3s8962
2018-05-20 21:30:03 +03:00
- run:
name: Build eLua for mbed LCP 1768
command: PATH=$PATH:$(readlink -f bin/gcc-arm-none-eabi-7-2017-q4-major/bin) lua build_elua.lua board=mbed
- run:
name: Build eLua for elua-puc
command: PATH=$PATH:$(readlink -f bin/gcc-arm-none-eabi-7-2017-q4-major/bin) lua build_elua.lua board=elua-puc
- run:
name: Build eLua for arm2368
command: PATH=$PATH:$(readlink -f bin/gcc-arm-none-eabi-7-2017-q4-major/bin) lua build_elua.lua board=arm2368