Skip to content

Commit 4bcc1ad

Browse files
committed
Release 0.1.3
1 parent 56b465b commit 4bcc1ad

24 files changed

+793
-1017
lines changed

.github/workflows/build-multi-pex.yml

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
name: Build elastic-blast PEX files
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build-single:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
python-version: [3.7]
11+
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v2
15+
with:
16+
fetch-depth: 0
17+
- name: Set up Python ${{ matrix.python-version }}
18+
uses: actions/setup-python@v2
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
- name: Build PEX file
22+
run: |
23+
pip3 install -r requirements/test.txt
24+
pex --python-shebang='/usr/bin/env python3' --disable-cache . -r requirements/base.txt --python=python${{ matrix.python-version }} -c elastic-blast.py -o elastic-blast
25+
./elastic-blast --version
26+
ls -l elastic-blast
27+
md5sum elastic-blast > elastic-blast.md5
28+
- name: Create tarball
29+
run: tar -czvf elastic-blast-no-suffix.tar.gz elastic-blast elastic-blast.md5
30+
- name: Produce downloadable artifact
31+
uses: actions/upload-artifact@v2
32+
with:
33+
name: elastic-blast-no-suffix
34+
path: elastic-blast-no-suffix.tar.gz
35+
retention-days: 1
36+
37+
build-multiple:
38+
runs-on: ubuntu-latest
39+
strategy:
40+
matrix:
41+
python-version: [3.7, 3.8, 3.9]
42+
43+
steps:
44+
45+
- name: Checkout
46+
uses: actions/checkout@v2
47+
with:
48+
fetch-depth: 0
49+
- name: Set up Python ${{ matrix.python-version }}
50+
uses: actions/setup-python@v2
51+
with:
52+
python-version: ${{ matrix.python-version }}
53+
- name: Build PEX file
54+
run: |
55+
pip3 install -r requirements/test.txt
56+
pex --python-shebang='/usr/bin/env python3' --disable-cache . -r requirements/base.txt --python=python${{ matrix.python-version }} -c elastic-blast.py -o elastic-blast${{ matrix.python-version }}
57+
./elastic-blast${{ matrix.python-version }} --version
58+
ls -l ./elastic-blast${{ matrix.python-version }}
59+
md5sum elastic-blast${{ matrix.python-version }} > elastic-blast${{ matrix.python-version }}.md5
60+
- name: Create tarball
61+
run: tar -czvf elastic-blast${{ matrix.python-version }}.tar.gz elastic-blast${{ matrix.python-version }} elastic-blast${{ matrix.python-version }}.md5
62+
- name: Produce downloadable artifact
63+
uses: actions/upload-artifact@v2
64+
with:
65+
name: elastic-blast-${{ matrix.python-version }}
66+
path: elastic-blast${{ matrix.python-version }}.tar.gz
67+
retention-days: 1
68+
69+
produce-archive:
70+
needs: [build-single, build-multiple]
71+
runs-on: ubuntu-latest
72+
steps:
73+
- uses: actions/checkout@v2
74+
- name: Download artifacts
75+
uses: actions/download-artifact@v2
76+
- name: Display structure of downloaded files
77+
run: ls -lR
78+
- name: Create tarball
79+
run: |
80+
tar axvf elastic-blast-no-suffix/elastic-blast-no-suffix.tar.gz
81+
tar axvf elastic-blast-3.7/elastic-blast3.7.tar.gz
82+
tar axvf elastic-blast-3.8/elastic-blast3.8.tar.gz
83+
tar axvf elastic-blast-3.9/elastic-blast3.9.tar.gz
84+
rm -fvr elastic-blast-*.tar.gz
85+
tar -czvf ~/elastic-blast.tar.gz elastic-blast elastic-blast*md5 elastic-blast3.[789]
86+
- name: 'Upload Artifact'
87+
uses: actions/upload-artifact@v2
88+
with:
89+
name: elastic-blast
90+
path: ~/elastic-blast.tar.gz
91+

0 commit comments

Comments
 (0)