Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
aea83da7
Commit
aea83da7
authored
Jul 29, 2021
by
Johny Mattsson
Browse files
Switching to github workflow integration.
parent
bc7b9236
Changes
2
Hide whitespace changes
Inline
Side-by-side
.github/workflows/build.yml
0 → 100644
View file @
aea83da7
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
.travis.yml
deleted
100644 → 0
View file @
bc7b9236
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment