Skip to content

Commit 6d74133

Browse files
authored
Create build-release.yml
Add build release workflow
1 parent 3790585 commit 6d74133

1 file changed

Lines changed: 45 additions & 0 deletions

File tree

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Build release
2+
3+
on:
4+
# run once a new tag is pushed
5+
push:
6+
tags:
7+
- '*'
8+
9+
jobs:
10+
ci:
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- uses: actions/setup-python@v2
20+
with:
21+
python-version: 3.9
22+
- run: pip install -r requirements.txt
23+
- run: python scripts/download-tools.py
24+
- run: black .
25+
- run: ruff openandroidinstaller/ --ignore E501
26+
- run: PYTHONPATH=openandroidinstaller:$(PYTHONPATH) pytest --cov=openandroidinstaller tests/
27+
build:
28+
runs-on: ${{ matrix.os }}
29+
strategy:
30+
fail-fast: false
31+
matrix:
32+
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
33+
34+
steps:
35+
- uses: actions/checkout@v2
36+
- uses: actions/setup-python@v2
37+
with:
38+
python-version: 3.9
39+
- run: pip install -r requirements.txt
40+
- run: python scripts/download-tools.py
41+
- run: python scripts/build.py
42+
- uses: actions/upload-artifact@v3
43+
with:
44+
name: openandroidinstaller-${{ github.ref_name }}-${{ matrix.os }}
45+
path: dist/

0 commit comments

Comments
 (0)