diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..529a2680 --- /dev/null +++ b/.github/workflows/build.yml @@ -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 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 55bb5c3a..00000000 --- a/.travis.yml +++ /dev/null @@ -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