Add Github CI script

This commit is contained in:
Me No Dev 2019-09-22 10:48:40 +03:00 committed by GitHub
commit 418e23367b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 76 additions and 2 deletions

24
.github/workflows/main.yml vendored Normal file
View file

@ -0,0 +1,24 @@
name: ESP32 Arduino Libs CI
on:
push:
branches:
- master
- release/*
pull_request:
jobs:
build-libs:
name: Build Arduino Libs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install dependencies
run: sudo apt-get install git wget curl libssl-dev libncurses-dev flex bison gperf python python-pip python-setuptools python-serial python-click python-cryptography python-future python-pyparsing python-pyelftools cmake ninja-build ccache
- name: Install Python Wheel
run: pip install wheel
- name: Build Arduino Libs
env:
TRAVIS_BUILD_DIR: ${{ github.workspace }}
run: bash $TRAVIS_BUILD_DIR/build.sh

42
.travis.yml Normal file
View file

@ -0,0 +1,42 @@
sudo: false
language: python
os:
- linux
git:
depth: false
addons:
apt:
packages:
- git
- wget
- curl
- libssl-dev
- libncurses-dev
- flex
- bison
- gperf
- python
- python-pip
- python-setuptools
- python-serial
- python-click
- python-cryptography
- python-future
- python-pyparsing
- python-pyelftools
- cmake
- ninja-build
- ccache
stages:
- build
jobs:
include:
- name: "Build Arduino Libs"
if: tag IS blank AND (type = pull_request OR (type = push AND branch = master))
stage: build
script: bash $TRAVIS_BUILD_DIR/build.sh

View file

@ -1,4 +1,4 @@
#ESP32 Arduino Lib Builder
#ESP32 Arduino Lib Builder [![Build Status](https://travis-ci.org/espressif/esp32-arduino-lib-builder.svg?branch=master)](https://travis-ci.org/espressif/esp32-arduino-lib-builder)
This repository contains the scripts that produce the libraries included with esp32-arduino.

View file

@ -2,6 +2,7 @@
# Automatically generated file; DO NOT EDIT.
# Espressif IoT Development Framework Configuration
#
CONFIG_IDF_FIRMWARE_CHIP_ID=0x0000
#
# SDK tool configuration
@ -272,6 +273,12 @@ CONFIG_FRMN2C_QUANT=
#
# ESP32-specific
#
CONFIG_ESP32_REV_MIN_0=y
CONFIG_ESP32_REV_MIN_1=
CONFIG_ESP32_REV_MIN_2=
CONFIG_ESP32_REV_MIN_3=
CONFIG_ESP32_REV_MIN=0
CONFIG_ESP32_DPORT_WORKAROUND=y
CONFIG_ESP32_DEFAULT_CPU_FREQ_80=
CONFIG_ESP32_DEFAULT_CPU_FREQ_160=y
CONFIG_ESP32_DEFAULT_CPU_FREQ_240=
@ -386,6 +393,7 @@ CONFIG_DISABLE_BASIC_ROM_CONSOLE=
CONFIG_ESP_TIMER_PROFILING=
CONFIG_COMPATIBLE_PRE_V2_1_BOOTLOADERS=
CONFIG_ESP_ERR_TO_NAME_LOOKUP=y
CONFIG_ESP32_DPORT_DIS_INTERRUPT_LVL=5
#
# Wi-Fi

View file

@ -16,7 +16,7 @@ if [ -z "$IDF_PATH" ]; then
cd $IDF_PATH
git fetch origin && git pull origin $IDF_BRANCH
git submodule update --init --recursive
python -m pip install --user -r requirements.txt
python -m pip install -r requirements.txt
cd "$AR_ROOT"
fi