Skip to content

GitHub Action to set up cargo-lambda for use in workflows

License

Notifications You must be signed in to change notification settings

zerj9/setup-cargo-lambda

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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@v3
      - uses: dtolnay/rust-toolchain@stable
      - uses: goto-bus-stop/setup-zig@v1
        with:
          version: 0.9.1
      - uses: zerj9/setup-cargo-lambda@v0.1.0
      - 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