Skip to content

Commit fbbcc54

Browse files
authored
add github workflow for building the package (#1)
1 parent b44ea45 commit fbbcc54

2 files changed

Lines changed: 46 additions & 1 deletion

File tree

‎.github/workflows/build.yml‎

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Build with pyinstaller
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
push:
8+
branches:
9+
- main
10+
11+
jobs:
12+
release:
13+
runs-on: ${{ matrix.os }}
14+
15+
strategy:
16+
matrix:
17+
os: [macos-10.15, windows-latest, ubuntu-latest]
18+
19+
steps:
20+
- name: Check out Git repository
21+
uses: actions/checkout@v1
22+
23+
- name: Create virtual environment
24+
run: make venv
25+
26+
- name: Build using pyinstaller
27+
run: make build
28+
29+
- name: Smoke test
30+
run: |
31+
ls dist/localstack
32+
dist/localstack/localstack --help
33+
dist/localstack/localstack config show
34+
35+
- name: Archive distribution
36+
run: |
37+
cd dist/
38+
tar -czf localstack-packaged-cli-${{ matrix.os }}.tar.gz localstack
39+
40+
- name: Upload artifacts
41+
uses: actions/upload-artifact@v2
42+
with:
43+
name: localstack-packaged-cli-${{ matrix.os }}
44+
path: dist/localstack-packaged-cli-${{ matrix.os }}.tar.gz

‎Makefile‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ venv: $(VENV_ACTIVATE)
1515

1616
$(VENV_ACTIVATE): requirements.txt
1717
test -d $(VENV_DIR) || $(VENV_BIN) $(VENV_DIR)
18+
$(VENV_RUN); pip install --upgrade setuptools wheel
1819
$(VENV_RUN); pip install -r requirements.txt
19-
touch $(VENV_DIR)/bin/activate
20+
touch $(VENV_ACTIVATE)
2021

2122
dist/localstack/localstack: main.py
2223
$(VENV_RUN); pyinstaller main.py \

0 commit comments

Comments
 (0)