CI: switch to Ubuntu 20.04 and don't use Docker image as build environment
Note that ubuntu-20.04 is preview currently, as stated in https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners.
This commit is contained in:
parent
d25ef2c156
commit
3d3868cf60
2
.github/workflows/docker_image.yml
vendored
2
.github/workflows/docker_image.yml
vendored
@ -14,7 +14,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update:
|
update:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- name: Clone repository
|
- name: Clone repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
18
.github/workflows/packages.yml
vendored
18
.github/workflows/packages.yml
vendored
@ -12,7 +12,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-20.04
|
||||||
env:
|
env:
|
||||||
ANDROID_HOME: "/opt/termux/android-sdk"
|
ANDROID_HOME: "/opt/termux/android-sdk"
|
||||||
NDK: "/opt/termux/android-ndk"
|
NDK: "/opt/termux/android-ndk"
|
||||||
@ -24,12 +24,6 @@ jobs:
|
|||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
fetch-depth: 1000
|
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
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
BASE_COMMIT=$(jq --raw-output .pull_request.base.sha "$GITHUB_EVENT_PATH")
|
BASE_COMMIT=$(jq --raw-output .pull_request.base.sha "$GITHUB_EVENT_PATH")
|
||||||
@ -60,14 +54,8 @@ jobs:
|
|||||||
echo "[!] Force exiting as tag '%ci:no-build' was applied to HEAD commit message."
|
echo "[!] Force exiting as tag '%ci:no-build' was applied to HEAD commit message."
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
# Build local Docker image if setup scripts were changed.
|
# Install build tools
|
||||||
# Useful for pull requests submitting changes for both build environment and packages.
|
./scripts/setup-ubuntu.sh
|
||||||
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.
|
# Remove duplicates and deleted packages from $PACKAGE_NAMES.
|
||||||
# Write names of deleted packages to a list that will be passed to upload job for
|
# Write names of deleted packages to a list that will be passed to upload job for
|
||||||
# further processing.
|
# further processing.
|
||||||
|
2
.github/workflows/repology_metadata.yml
vendored
2
.github/workflows/repology_metadata.yml
vendored
@ -6,7 +6,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update:
|
update:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- name: Clone repository
|
- name: Clone repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
2
.github/workflows/repository_cleanup.yml
vendored
2
.github/workflows/repository_cleanup.yml
vendored
@ -6,7 +6,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
repo-maintenance:
|
repo-maintenance:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- name: Clone repository
|
- name: Clone repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user