Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,18 @@ jobs:
shell: bash
run: nix profile add nixpkgs#devenv

# The Rust toolchain comes from the Nix rust-overlay, so cargo/rustc are
# only on PATH inside `devenv shell`. Expose their bin dir to subsequent
# action steps so rust-cache can probe the toolchain for its cache key.
- name: Expose Rust toolchain to GitHub PATH
run: dirname "$(command -v cargo)" >> "$GITHUB_PATH"

- name: Cache Rust build
uses: Swatinem/rust-cache@42dc69e1aa15d09112580998cf2ef0119e2e91ae # v2.9.1
with:
workspaces: lambda
cache-on-failure: true

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@e7f100cf4c008499ea8adda475de1042d6975c7b # v6.2.0
with:
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,19 @@ jobs:
shell: bash
run: nix profile add nixpkgs#devenv

# The Rust toolchain comes from the Nix rust-overlay, so cargo/rustc are
# only on PATH inside `devenv shell`. Expose their bin dir to subsequent
# action steps so rust-cache can probe the toolchain for its cache key.
- name: Expose Rust toolchain to GitHub PATH
run: dirname "$(command -v cargo)" >> "$GITHUB_PATH"

- name: Cache Rust build
uses: Swatinem/rust-cache@42dc69e1aa15d09112580998cf2ef0119e2e91ae # v2.9.1
with:
workspaces: lambda
cache-on-failure: true
save-if: ${{ github.ref == 'refs/heads/main' }}

- name: Build
run: cd lambda && cargo lambda build --arm64

Expand Down
Loading