https://github.com/zerj9/setup-cargo-lambda
GitHub Action to set up cargo-lambda for use in workflows
https://github.com/zerj9/setup-cargo-lambda
aws aws-lambda cargo github-actions rust
Last synced: 2 months ago
JSON representation
GitHub Action to set up cargo-lambda for use in workflows
- Host: GitHub
- URL: https://github.com/zerj9/setup-cargo-lambda
- Owner: zerj9
- License: mit
- Created: 2022-09-16T16:00:47.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2025-01-10T20:42:21.000Z (over 1 year ago)
- Last Synced: 2026-02-11T05:22:32.580Z (5 months ago)
- Topics: aws, aws-lambda, cargo, github-actions, rust
- Language: JavaScript
- Homepage:
- Size: 206 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Setup Cargo Lambda
This GitHub action downloads, extracts and adds the [cargo-lambda](https://github.com/cargo-lambda/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](https://github.com/marketplace/actions/rustup-toolchain-install) and [setup-zig](https://github.com/marketplace/actions/setup-zig) GitHub actions as shown below:
## Usage
```yaml
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