Skip to content

Commit 324eed5

Browse files
committed
chore: 🤖 add license and start compile action
1 parent 7edf412 commit 324eed5

File tree

9 files changed

+35
-10
lines changed

9 files changed

+35
-10
lines changed
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default async function compress() {}

.github/actions/compile/src/index.ts

+12-9
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
1+
// env vars for tensorflow/node version
2+
// sort package json
3+
// https://codeburst.io/execa-v2-20ffafeedfdf
4+
15
import core from '@actions/core';
2-
import github from '@actions/github';
6+
import main from './main';
37

48
try {
5-
// `who-to-greet` input defined in action metadata file
6-
const nameToGreet = core.getInput('who-to-greet');
7-
console.log(`Hello ${nameToGreet}!`);
8-
const time = new Date().toTimeString();
9-
core.setOutput('time', time);
10-
// Get the JSON webhook payload for the event that triggered the workflow
11-
const payload = JSON.stringify(github.context.payload, undefined, 2);
12-
console.log(`The event payload: ${payload}`);
9+
const lambda = core.getInput('lambda') || process.env.LAMBDA;
10+
const tensorflow = core.getInput('tensorflow') || process.env.TENSORFLOW;
11+
12+
core.info(lambda);
13+
core.info(tensorflow);
14+
15+
main().then(({ stringifiedOutputs, outputs }) => {});
1316
} catch (error) {
1417
core.setFailed(error.message);
1518
}
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default async function install() {}

.github/actions/compile/src/main.ts

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export default async function main() {
2+
const outputs = {};
3+
const stringifiedOutputs = {};
4+
return { outputs, stringifiedOutputs };
5+
}

.github/actions/matrix/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import * as core from '@actions/core';
77
import main from './main';
8-
import setOutputs from './setOutputs';
8+
import setOutputs from '../../shared/setOutputs';
99

1010
try {
1111
core.info(`process.cwd() ${process.cwd()}`);
File renamed without changes.
File renamed without changes.

.github/workflows/prepublish.yml .github/workflows/publish.yml

+4
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@ jobs:
3131
lambda: ${{ fromJson(needs.matrix.outputs.lambda) }}
3232
tensorflow: ${{ fromJson(needs.matrix.outputs.tensorflow )}}
3333
container: lambci/lambda:build-${{ matrix.lambda }}
34+
3435
steps:
36+
- name: Checkout
37+
uses: actions/checkout@v2
38+
3539
- name: Echo variables
3640
run: |
3741
echo "${{ matrix.lambda }}"

LICENSE.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
MIT License
2+
3+
Copyright (c) 2020–present John L. Armstrong IV https://github.com/jlarmstrongiv/tfjs-node-lambda
4+
5+
Copyright (c) 2019–2020 Luc Leray https://github.com/lucleray/tensorflow-lambda
6+
7+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
8+
9+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
10+
11+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

0 commit comments

Comments
 (0)