Skip to content

Commit 68473e7

Browse files
author
Michael Hansen
committedJul 1, 2020
Download dependencies before Docker build
1 parent 5e35718 commit 68473e7

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed
 

‎.github/workflows/deploy.yml

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
uses: actions/checkout@v1
2828
- name: Deploy image
2929
run: |
30+
scripts/download-dependencies.sh
3031
./configure --enable-in-place
3132
make deploy
3233
env:

‎.github/workflows/tests.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ jobs:
2525
with:
2626
python-version: ${{ matrix.python-version }}
2727
- name: Install Python dependencies
28-
run: make install
28+
run: |
29+
./configure --enable-in-place
30+
make
31+
make install
2932
- name: Check code
3033
run: make check
3134
- name: Make package

‎scripts/download-dependencies.sh

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/usr/bin/env bash
2+
set -e
3+
4+
# Directory of *this* script
5+
this_dir="$( cd "$( dirname "$0" )" && pwd )"
6+
src_dir="$(realpath "${this_dir}/..")"
7+
8+
download="${src_dir}/download"
9+
mkdir -p "${download}"
10+
11+
# -----------------------------------------------------------------------------
12+
13+
for docker_arch in amd64 armv7 arm64 armv6; do
14+
nanotts="nanotts-20200520_${docker_arch}.tar.gz"
15+
if [[ ! -s "${download}/${nanotts}" ]]; then
16+
wget -O "${download}/${nanotts}" "https://github.com/synesthesiam/prebuilt-apps/releases/download/v1.0/${nanotts}"
17+
fi
18+
done

0 commit comments

Comments
 (0)
Please sign in to comment.