Skip to content

Commit

Permalink
feat: native installer support for Linux x86-64 (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoffa authored Mar 1, 2023
1 parent 2993f01 commit 4c97144
Show file tree
Hide file tree
Showing 9 changed files with 2,964 additions and 159 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,26 @@ jobs:
with:
python-version: "3.8"

- name: Test official installer (pinned version)
if: startsWith(matrix.os, 'ubuntu')
uses: ./
with:
use-installer: true
version: "1.71.0"
- if: startsWith(matrix.os, 'ubuntu')
run: sam --version | grep -F 1.71.0

- name: Test official installer (latest version)
if: startsWith(matrix.os, 'ubuntu')
uses: ./
with:
use-installer: true
- if: startsWith(matrix.os, 'ubuntu')
run: |
version=$(curl https://pypi.org/pypi/aws-sam-cli/json | jq -r .info.version)
sam --version | grep -F "$version"
shell: bash

# Test latest published version
- uses: aws-actions/setup-sam@v2
with:
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ The Python interpreter to use for AWS SAM CLI. Defaults to `python` on Windows,

You can use [`actions/setup-python`](https://github.com/actions/setup-python) to automatically set up Python.

### `use-installer`

> **Note**
>
> Only supported on Linux x86-64 runners currently.

Set to `true` to install using native installers instead of `pip`. Defaults to `false`.

## Security

See [CONTRIBUTING.md](CONTRIBUTING.md#security-disclosures) for more information.
Expand Down
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ inputs:
python:
description: "The Python interpreter to use for AWS SAM CLI"
required: false
use-installer:
description: "Set to true to install using native installers instead of pip"
required: false
default: false
runs:
using: "node16"
main: "dist/index.js"
Loading

0 comments on commit 4c97144

Please sign in to comment.