diff options
-rwxr-xr-x | .github/workflows/docker-debian/entrypoint.sh | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/.github/workflows/docker-debian/entrypoint.sh b/.github/workflows/docker-debian/entrypoint.sh index 6e1ffbb0..3c03ca75 100755 --- a/.github/workflows/docker-debian/entrypoint.sh +++ b/.github/workflows/docker-debian/entrypoint.sh | |||
@@ -2,19 +2,22 @@ | |||
2 | export LC_ALL=en_US.UTF-8 | 2 | export LC_ALL=en_US.UTF-8 |
3 | 3 | ||
4 | apt-get update -qq -y | 4 | apt-get update -qq -y |
5 | apt-get install -y -qq --no-install-recommends cmake libsdl2-dev libssl-dev libpcre3-dev zlib1g-dev libunistring-dev libmpg123-dev debhelper dh-make devscripts fakeroot git build-essential locales | 5 | apt-get install -y -qq --no-install-recommends cmake libsdl2-dev libssl-dev libpcre3-dev zlib1g-dev libunistring-dev libmpg123-dev debhelper dh-make devscripts fakeroot git build-essential locales python3 python3-pip |
6 | pip3 install git-archive-all | ||
6 | sed -i 's/^# *\(en_US.UTF-8\)/\1/' /etc/locale.gen && locale-gen | 7 | sed -i 's/^# *\(en_US.UTF-8\)/\1/' /etc/locale.gen && locale-gen |
7 | git submodule sync | ||
8 | 8 | ||
9 | git submodule sync | ||
9 | export RELEASE_VERSION=`git tag | sort -rV | head -n1 | sed 's/v\(.*\)/\1/'` | 10 | export RELEASE_VERSION=`git tag | sort -rV | head -n1 | sed 's/v\(.*\)/\1/'` |
10 | 11 | ||
11 | git archive --format=tar.gz --prefix=lagrange-${RELEASE_VERSION}/ HEAD >lagrange-${RELEASE_VERSION}.tar.gz | 12 | git archive-all --prefix=lagrange-${RELEASE_VERSION}/ lagrange-${RELEASE_VERSION}.tar.gz |
12 | tar -xvzf lagrange-${RELEASE_VERSION}.tar.gz | 13 | tar -xvzf lagrange-${RELEASE_VERSION}.tar.gz |
13 | ln -s lagrange-${RELEASE_VERSION}.tar.gz lagrange_${RELEASE_VERSION}.orig.tar.gz | 14 | ln -s lagrange-${RELEASE_VERSION}.tar.gz lagrange_${RELEASE_VERSION}.orig.tar.gz |
15 | |||
14 | cd lagrange-${RELEASE_VERSION} | 16 | cd lagrange-${RELEASE_VERSION} |
15 | dch -v ${RELEASE_VERSION}-1 "Built by GitHub CI." | 17 | dch -v ${RELEASE_VERSION}-1 "Built by GitHub Actions." |
16 | dch -r "" | 18 | dch -r "" |
17 | debuild | 19 | debuild |
18 | cd .. | 20 | cd .. |
21 | |||
19 | mkdir -p artifacts | 22 | mkdir -p artifacts |
20 | mv *deb artifacts/ | 23 | mv *deb artifacts/ |