Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade CI to Ubuntu 20.04 LTS (Focal) #1183

Merged
merged 23 commits into from
May 28, 2024
Merged
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 32 additions & 15 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,31 @@ orbs:
win: circleci/windows@1.0.0

executors:
bionic:
ubuntu:
docker:
- image: buildpack-deps:bionic
- image: buildpack-deps:jammy

jobs:
flake8:
executor: bionic
executor: ubuntu
steps:
- checkout
- run:
name: install pip
name: install pip3
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.7.8
- run: python3 -m pip install flake8==3.7.8
- run: python2 -m flake8 --show-source --statistics
- run: python3 -m flake8 --show-source --statistics
- run:
name: install pip2
command: apt-get install -q -y python-pip
- run: python2 -m pip install --upgrade pip
- run: python2 -m pip install flake8==3.7.8
- run: python2 -m flake8 --show-source --statistics
test-linux:
executor: bionic
executor: ubuntu
environment:
EMSDK_NOTTY: "1"
# This is needed because the old gcc-7 that is installed on debian/bionic
Expand All @@ -39,7 +42,7 @@ jobs:
- checkout
- run:
name: Install debian packages
command: apt-get update -q && apt-get install -q -y cmake build-essential openjdk-8-jre-headless ksh zsh
command: apt-get update -q && apt-get install -q -y cmake build-essential openjdk-8-jre-headless ksh zsh python-is-python3
- run: test/test.sh
- run: test/test_source_env.sh
- run:
Expand Down Expand Up @@ -134,12 +137,19 @@ jobs:
test/test_path_preservation.ps1

build-docker-image:
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 and test the tip-of-tree build of EMSDK
- run:
Expand All @@ -150,12 +160,19 @@ jobs:
command: make -C ./docker version=tot test

publish-docker-image:
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
Expand All @@ -170,7 +187,7 @@ jobs:
make -C ./docker version=${CIRCLE_TAG} alias=latest push

test-bazel-linux:
executor: bionic
executor: ubuntu
steps:
- checkout
- run: apt-get install -q -y curl gnupg
Expand Down