Skip to content

initial implementation of a single binary mode #28

initial implementation of a single binary mode

initial implementation of a single binary mode #28

Workflow file for this run

name: Build with pyinstaller
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
release:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-11, windows-2019, ubuntu-20.04]
steps:
- name: Check out Git repository
uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Create virtual environment
run: make venv
- name: Build using pyinstaller
run: make build
- name: Smoke test
run: |
ls dist/
dist/localstack --help
dist/localstack config show
# TODO Add more tests here
- name: Set CLI version output
id: cli_version
run: |
dist/localstack --version
echo "number=$(dist/localstack --version)" >> $GITHUB_OUTPUT
- name: Archive distribution
run: |
cd dist/
tar -czf localstack-cli-${{steps.cli_version.outputs.number}}-${{ matrix.os }}.tar.gz ./localstack
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: localstack-cli-${{steps.cli_version.outputs.number}}-${{ matrix.os }}
path: dist/localstack-cli-${{steps.cli_version.outputs.number}}-${{ matrix.os }}.tar.gz