Skip to content

Commit

Permalink
[add] aws lambda build
Browse files Browse the repository at this point in the history
  • Loading branch information
amerelo committed Nov 4, 2020
1 parent 0e32f0d commit 9a331f7
Show file tree
Hide file tree
Showing 10 changed files with 991 additions and 200 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/aws_lambda.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: AWS_Lambda

on:
push:
branches: [ feat/aws_lambda ]


jobs:
build:
runs-on: ${{ matrix.os }}
env:
MACOSX_DEPLOYMENT_TARGET: 10.11
strategy:
matrix:
os: [ubuntu-latest]
include:
- os: ubuntu-latest
asset_name: csml-server-lambda

steps:
- uses: actions/checkout@v2

# for some reason cache does not work properly with macos builds
- name: Cache Cargo
if: matrix.os != 'macos-latest'
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-csml-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Install Rust Stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: x86_64-unknown-linux-gnu
override: true

- name: Build Server
uses: actions-rs/cargo@v1
with:
use-cross: true
command: build
args: --verbose --manifest-path=bindings/aws_lambda/Cargo.toml --features csml_engine/mongo,csml_engine/dynamo --target x86_64-unknown-linux-gnu --release --bin aws_lambda

- uses: actions/upload-artifact@v2
with:
name: bootstrap
path: target/x86_64-unknown-linux-gnu/release/aws_lambda
Loading

0 comments on commit 9a331f7

Please sign in to comment.