-
Notifications
You must be signed in to change notification settings - Fork 710
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade CI to Ubuntu 20.04 LTS (Focal) (#1183)
# Why On one hand Ubuntu18's free LTS cycle is ended, and on the other hand Ubuntu18 does not support nodejs greater than v18. # What's changed. 1. update the Linux Docker image to buildpack-deps:focal 2. some compatibility changes 3. use the new recommended way to install Docker ([see here](https://docs.docker.com/engine/install/ubuntu/)) See #1173
- Loading branch information
1 parent
ce74ca2
commit fc9146e
Showing
2 changed files
with
27 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,9 +4,9 @@ orbs: | |
win: circleci/[email protected] | ||
|
||
executors: | ||
bionic: | ||
ubuntu: | ||
docker: | ||
- image: buildpack-deps:bionic | ||
- image: buildpack-deps:focal | ||
mac: | ||
environment: | ||
EMSDK_NOTTY: "1" | ||
|
@@ -50,22 +50,20 @@ commands: | |
jobs: | ||
flake8: | ||
executor: bionic | ||
executor: ubuntu | ||
steps: | ||
- checkout | ||
- run: | ||
name: install pip | ||
command: | | ||
apt-get update -q | ||
apt-get install -q -y python-pip python3-pip | ||
- run: python2 -m pip install --upgrade pip | ||
apt-get install -q -y python3-pip | ||
- run: python3 -m pip install --upgrade pip | ||
- run: python2 -m pip install flake8==3.9.2 | ||
- run: python3 -m pip install flake8==3.9.2 | ||
- run: python2 -m flake8 --show-source --statistics --extend-exclude=./scripts | ||
- run: python3 -m flake8 --show-source --statistics | ||
- run: python3 -m flake8 --show-source --statistics --extend-exclude=./scripts | ||
|
||
test-linux: | ||
executor: bionic | ||
executor: ubuntu | ||
environment: | ||
EMSDK_NOTTY: "1" | ||
# This is needed because the old gcc-7 that is installed on debian/bionic | ||
|
@@ -174,12 +172,19 @@ jobs: | |
test/test_path_preservation.ps1 | ||
build-docker-image-x64: | ||
executor: bionic | ||
executor: ubuntu | ||
steps: | ||
- checkout | ||
- run: | ||
name: install docker | ||
command: apt-get update -q && apt-get install -q -y docker.io | ||
command: | | ||
apt-get update -q | ||
apt-get install -q -y ca-certificates curl gnupg lsb-release | ||
mkdir -p /etc/apt/keyrings | ||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg | ||
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null | ||
apt-get update -q | ||
apt-get install -q -y docker-ce docker-ce-cli containerd.io docker-compose-plugin | ||
- setup_remote_docker | ||
# Build the `latest` version of EMSDK as docker image | ||
- run: | ||
|
@@ -190,12 +195,19 @@ jobs: | |
command: make -C ./docker version=latest test | ||
|
||
publish-docker-image-x64: | ||
executor: bionic | ||
executor: ubuntu | ||
steps: | ||
- checkout | ||
- run: | ||
name: install docker | ||
command: apt-get update -q && apt-get install -q -y docker.io | ||
command: | | ||
apt-get update -q | ||
apt-get install -q -y ca-certificates curl gnupg lsb-release | ||
mkdir -p /etc/apt/keyrings | ||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg | ||
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null | ||
apt-get update -q | ||
apt-get install -q -y docker-ce docker-ce-cli containerd.io docker-compose-plugin | ||
- setup_remote_docker | ||
- run: | ||
name: build | ||
|
@@ -226,7 +238,7 @@ jobs: | |
make -C ./docker version=${CIRCLE_TAG} alias=${CIRCLE_TAG}-arm64 only_alias=true push | ||
test-bazel-linux: | ||
executor: bionic | ||
executor: ubuntu | ||
steps: | ||
- checkout | ||
- run: apt-get install -q -y curl gnupg | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters