Skip to content

Setup Cargo Lambda

Actions
Sets up cargo-lambda for building rust functions to run on AWS Lambda
v0.1.2
Latest
Star (2)

Setup Cargo Lambda

This GitHub action downloads, extracts and adds the cargo-lambda binary to the workspace PATH.

Prior installation of Rust, Cargo and Zig are required within the workflow.

They can be installed using the rustup-toolchain-install and setup-zig GitHub actions as shown below:

Usage

name: cargo-lambda-test
on: [push]
jobs:
  cargo-lambda-build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: dtolnay/rust-toolchain@stable
      - uses: goto-bus-stop/setup-zig@v2
        with:
          version: 0.13.0
      - uses: zerj9/setup-cargo-lambda@v0.1.1
      - run: cargo lambda build --arm64
        working-directory: lambda_function

Note: cargo-lambda requires rust version 1.59 and above as well as zig version 0.9.1 and above

Setup Cargo Lambda is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Sets up cargo-lambda for building rust functions to run on AWS Lambda
v0.1.2
Latest

Setup Cargo Lambda is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.