Switching to github workflow integration.

This commit is contained in:
Johny Mattsson 2021-07-29 15:14:16 +10:00
parent bc7b923646
commit aea83da7df
2 changed files with 51 additions and 21 deletions

51
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,51 @@
name: CI
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
lua_ver: ['5.1']
numbers: ['float']
include:
- lua_ver: '5.1'
numbers: 'integral'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Prepare cache key
run: git rev-parse HEAD:sdk/esp32-esp-idf > idf.rev
shell: bash
- name: Cache Espressif tools
uses: actions/cache@v2
with:
path: ~/.espressif
key: ${{ runner.os }}-espressif-tools-${{ hashFiles('idf.rev') }}
- name: Install dependencies
run: ./install.sh
shell: bash
- name: Build firmware (Lua 5.1)
if: ${{ matrix.lua_ver == '5.1' && matrix.numbers == 'float' }}
run: |
cp sdkconfig.defaults sdkconfig
make SHELL=/bin/bash
shell: bash
- name: Build firmware (Lua 5.1, integer-only)
if: ${{ matrix.lua_ver == '5.1' && matrix.numbers == 'integral' }}
run: |
cp sdkconfig.defaults sdkconfig
echo CONFIG_LUA_NUMBER_INTEGRAL=y >> sdkconfig
make SHELL=/bin/bash
shell: bash
- name: Upload luac.cross
uses: actions/upload-artifact@v2
if: ${{ success() }}
with:
name: luac.cross-${{ matrix.lua_ver }}-${{ matrix.numbers }}
path: build/luac_cross/luac.cross

View File

@ -1,21 +0,0 @@
dist: xenial
language: cpp
addons:
apt:
packages:
- python-serial
- gperf
# note that we clobber $PATH completely, to get rid of /opt/python* stuff so
# we can use the system python and python-serial, rather than messing around
# with pip all over the place
install:
- export PATH=/bin:/usr/bin:/sbin:/usr/sbin
- ./install.sh
script:
- export BUILD_DATE=$(date +%Y%m%d)
- cp sdkconfig.defaults sdkconfig
- make IDFPY_ARGS="-B build/float"
- echo CONFIG_LUA_NUMBER_INTEGRAL=y >> sdkconfig
- make IDFPY_ARGS="-B build/integer"
# http://docs.travis-ci.com/user/environment-variables/#Convenience-Variables
#- if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then bash "$TRAVIS_BUILD_DIR"/tools/pr-build.sh; fi