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
6 changes: 3 additions & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -50,7 +50,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -64,4 +64,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
39 changes: 24 additions & 15 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/setup-node@v5
- run: npm ci
- run: npm test

Expand All @@ -21,6 +21,7 @@ jobs:
os:
- ubuntu-latest
- ubuntu-22.04
- ubuntu-24.04-arm
name: Native installer / ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -30,15 +31,15 @@ jobs:
uses: ./
with:
use-installer: true
version: "1.71.0"
- run: sam --version | grep -F 1.71.0
version: "1.104.0"
- run: sam --version | grep -F 1.104.0

- name: Test official installer (pinned version; should use cache)
uses: ./
with:
use-installer: true
version: "1.71.0"
- run: sam --version | grep -F 1.71.0
version: "1.104.0"
- run: sam --version | grep -F 1.104.0

- name: Test official installer (latest version)
uses: ./
Expand All @@ -58,12 +59,19 @@ jobs:
- windows-latest
- macos-latest
- ubuntu-22.04
- windows-2019
- ubuntu-24.04-arm
python:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"
name: PyPI / ${{ matrix.os }} / ${{ matrix.python }}
runs-on: ${{ matrix.os }}
env:
# Set SAM versions based on Python version
SAM_VERSION: ${{ contains(fromJson('["3.12", "3.13"]'), matrix.python) && '1.128.0' || '1.18.2' }}
INSTALLER_VERSION: ${{ contains( matrix.os, '-arm') && '1.130.0' || '1.71.0' }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand All @@ -75,9 +83,9 @@ jobs:
uses: ./
with:
use-installer: true
version: "1.71.0"
version: ${{ env.INSTALLER_VERSION }}
- if: startsWith(matrix.os, 'ubuntu')
run: sam --version | grep -F 1.71.0
run: sam --version | grep -F ${{ env.INSTALLER_VERSION }}

- name: Test official installer (latest version)
if: startsWith(matrix.os, 'ubuntu')
Expand All @@ -93,8 +101,8 @@ jobs:
# Test setup specific version
- uses: ./
with:
version: "1.18.2"
- run: sam --version | grep -F 1.18.2
version: ${{ env.SAM_VERSION }}
- run: sam --version | grep -F ${{ env.SAM_VERSION }}

# Test setup latest version
- uses: ./
Expand All @@ -107,16 +115,17 @@ jobs:
- run: sam init --name sam-app --runtime nodejs20.x --dependency-manager npm --app-template hello-world

# Test sam build
- uses: actions/setup-node@v4
- uses: actions/setup-node@v5
with:
node-version: "20"
- run: sam build
working-directory: ./sam-app

# Test sam build --use-container
# Doesn't work as-is on macOS or Windows due to licensing:
# - https://github.com/actions/virtual-environments/issues/17
# - https://github.com/actions/virtual-environments/issues/1143
- if: startsWith(matrix.os, 'ubuntu')
# - https://github.com/actions/runner-images/issues/17
# - https://github.com/actions/runner-images/issues/1143
# Ubuntu ARM runners are not yet GA
- if: startsWith(matrix.os, 'ubuntu') && !contains(matrix.os, '-arm')
run: sam build --use-container
working-directory: ./sam-app
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules/
.idea/
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,8 @@ The AWS SAM CLI version to install. Installs the latest version by default.
>
> This is the recommended approach on supported platforms. It does not require Python to be installed, and is faster than the default installation method.
>
> Currently supports Linux x86-64 runners.

Set to `true` to set up AWS SAM CLI using a native installer. Defaults to `false`.
> Currently supports Linux x86-64 and aarch64 (ARM) runners. For ARM architecture, only versions 1.104.0 and above are supported.
> Set to `true` to set up AWS SAM CLI using a native installer. Defaults to `false`.

### `python`

Expand Down
Loading
Loading