-
Notifications
You must be signed in to change notification settings - Fork 323
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #169 from konnected-io/mem-cleanup
memory cleanup
- Loading branch information
Showing
13 changed files
with
78 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: Build | ||
|
||
on: pull_request | ||
on: push | ||
|
||
jobs: | ||
build-upload: | ||
|
@@ -20,16 +20,17 @@ jobs: | |
sudo apt-get -y install libusb-1.0-0 cmake srecord | ||
pip install -U pyserial | ||
- name: Build | ||
env: | ||
PR_NUMBER: ${{ github.event.number }} | ||
run: ./scripts/build-firmware | ||
- id: build | ||
name: Build | ||
run: | | ||
fname=$(./scripts/build-firmware | tail -1) | ||
echo "::set-output name=fname::$fname" | ||
- uses: keithweaver/[email protected] | ||
name: Copy PR bin to AWS | ||
name: Copy build to AWS | ||
with: | ||
command: cp | ||
source: build/konnected-esp8266-PR-${{ github.event.number }}.bin | ||
source: build/${{ steps.build.outputs.fname }} | ||
destination: s3://konnected-io/builds/ | ||
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,3 +41,23 @@ jobs: | |
release-url: ${{ steps.get_release.outputs.upload_url }} | ||
allow-overwrite: true | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- uses: keithweaver/[email protected] | ||
name: Copy image to S3 | ||
with: | ||
command: cp | ||
source: assets/konnected-esp8266-${{ steps.get_release.outputs.tag_name }}.bin | ||
destination: s3://konnected-io/esp8266/images/ | ||
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws_region: us-east-2 | ||
|
||
- uses: keithweaver/[email protected] | ||
name: Copy LFS to S3 | ||
with: | ||
command: cp | ||
source: assets/lfs-${{ steps.get_release.outputs.tag_name }}.img | ||
destination: s3://konnected-io/esp8266/lfs/ | ||
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws_region: us-east-2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,5 +66,6 @@ local httpdResponse = { | |
|
||
return function() | ||
package.loaded[module] = nil | ||
module = nil | ||
return httpdResponse | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
local module = ... | ||
|
||
|
||
local function build_list(objects) | ||
local out = {} | ||
for key, value in pairs(objects) do | ||
|
This file was deleted.
Oops, something went wrong.