Revert "CI: switch to Ubuntu 20.04 and don't use Docker image as build environment"

This reverts commit eaeb2e609e075adea6c3d783a258996517a83ac5.
This commit is contained in:
Leonid Pliushch 2020-07-01 20:27:59 +03:00
parent 39c66b1ea7
commit 41c529fd8c
4 changed files with 18 additions and 6 deletions

View File

@ -14,7 +14,7 @@ on:
jobs:
update:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v2

View File

@ -12,7 +12,7 @@ on:
jobs:
build:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
env:
ANDROID_HOME: "/opt/termux/android-sdk"
NDK: "/opt/termux/android-ndk"
@ -24,6 +24,12 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: 1000
- name: Free additional disk space on host
run: |
sudo apt purge -yq $(dpkg -l | grep '^ii' | awk '{ print $2 }' | grep -P '(cabal-|dotnet-|ghc-|libmono|php)') \
java-common liblldb-6.0 libllvm6.0:amd64 liblxc-common libx11-6:amd64 mono-runtime-common monodoc-manual \
powershell ruby
sudo apt autoremove -yq
- name: Build
run: |
BASE_COMMIT=$(jq --raw-output .pull_request.base.sha "$GITHUB_EVENT_PATH")
@ -54,8 +60,14 @@ jobs:
echo "[!] Force exiting as tag '%ci:no-build' was applied to HEAD commit message."
exit 0
fi
# Install build tools
./scripts/setup-ubuntu.sh
# Build local Docker image if setup scripts were changed.
# Useful for pull requests submitting changes for both build environment and packages.
if grep -qP '^scripts/(Dockerfile|setup-ubuntu\.sh)$' <<< "$CHANGED_FILES"; then
echo "Detected changes for environment setup scripts. Building custom Docker image now."
cd ./scripts
docker build -t termux/package-builder:latest .
cd ..
fi
# Remove duplicates and deleted packages from $PACKAGE_NAMES.
# Write names of deleted packages to a list that will be passed to upload job for
# further processing.

View File

@ -6,7 +6,7 @@ on:
jobs:
update:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v2

View File

@ -6,7 +6,7 @@ on:
jobs:
repo-maintenance:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v2