Skip to content

Commit

Permalink
Update CI to use Ubuntu 22.04 / clang 14
Browse files Browse the repository at this point in the history
Signed-off-by: Martijn Stevenson <[email protected]>
  • Loading branch information
martijneken committed Aug 13, 2024
1 parent e38c8ce commit 9ec5195
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 19 deletions.
36 changes: 18 additions & 18 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
test_data:
name: build test data

runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -109,19 +109,19 @@ jobs:
include:
- name: 'NullVM on Linux/x86_64'
engine: 'null'
os: ubuntu-20.04
os: ubuntu-22.04
arch: x86_64
action: test
flags: --config=gcc
- name: 'NullVM on Linux/x86_64 with ASan'
engine: 'null'
os: ubuntu-20.04
os: ubuntu-22.04
arch: x86_64
action: test
flags: --config=clang-asan-strict --define=crypto=system
- name: 'NullVM on Linux/x86_64 with TSan'
engine: 'null'
os: ubuntu-20.04
os: ubuntu-22.04
arch: x86_64
action: test
flags: --config=clang-tsan
Expand All @@ -134,39 +134,39 @@ jobs:
- name: 'V8 on Linux/x86_64'
engine: 'v8'
repo: 'v8'
os: ubuntu-20.04
os: ubuntu-22.04
arch: x86_64
action: test
flags: --config=clang --define=crypto=system
cache: true
- name: 'V8 on Linux/x86_64 with ASan'
engine: 'v8'
repo: 'v8'
os: ubuntu-20.04
os: ubuntu-22.04
arch: x86_64
action: test
flags: --config=clang-asan
cache: true
- name: 'V8 on Linux/x86_64 with TSan'
engine: 'v8'
repo: 'v8'
os: ubuntu-20.04
os: ubuntu-22.04
arch: x86_64
action: test
flags: --config=clang-tsan
cache: true
- name: 'V8 on Linux/x86_64 with GCC'
engine: 'v8'
repo: 'v8'
os: ubuntu-20.04
os: ubuntu-22.04
arch: x86_64
action: test
flags: --config=gcc
cache: true
- name: 'V8 on Linux/aarch64'
engine: 'v8'
repo: 'v8'
os: ubuntu-20.04
os: ubuntu-22.04
arch: aarch64
action: test
targets: -//test/fuzz/...
Expand All @@ -183,7 +183,7 @@ jobs:
- name: 'WAMR interp on Linux/x86_64'
engine: 'wamr-interp'
repo: 'com_github_bytecodealliance_wasm_micro_runtime'
os: ubuntu-20.04
os: ubuntu-22.04
arch: x86_64
action: test
flags: --config=clang
Expand All @@ -196,7 +196,7 @@ jobs:
- name: 'WAMR jit on Linux/x86_64'
engine: 'wamr-jit'
repo: 'com_github_bytecodealliance_wasm_micro_runtime'
os: ubuntu-20.04
os: ubuntu-22.04
arch: x86_64
action: test
flags: --config=clang
Expand All @@ -212,7 +212,7 @@ jobs:
- name: 'WasmEdge on Linux/x86_64'
engine: 'wasmedge'
repo: 'com_github_wasmedge_wasmedge'
os: ubuntu-20.04
os: ubuntu-22.04
arch: x86_64
action: test
flags: --config=clang
Expand All @@ -225,34 +225,34 @@ jobs:
- name: 'Wasmtime on Linux/x86_64'
engine: 'wasmtime'
repo: 'com_github_bytecodealliance_wasmtime'
os: ubuntu-20.04
os: ubuntu-22.04
arch: x86_64
action: test
flags: --config=clang -c opt
- name: 'Wasmtime on Linux/x86_64 with ASan'
engine: 'wasmtime'
repo: 'com_github_bytecodealliance_wasmtime'
os: ubuntu-20.04
os: ubuntu-22.04
arch: x86_64
action: test
flags: --config=clang-asan-strict --define=crypto=system
- name: 'Wasmtime on Linux/aarch64'
engine: 'wasmtime'
repo: 'com_github_bytecodealliance_wasmtime'
os: ubuntu-20.04
os: ubuntu-22.04
arch: aarch64
action: build
flags: --config=zig-cc-linux-aarch64
deps: qemu-user-static libc6-arm64-cross
- name: 'Wasmtime on Linux/s390x'
engine: 'wasmtime'
repo: 'com_github_bytecodealliance_wasmtime'
os: ubuntu-20.04
os: ubuntu-22.04
arch: s390x
action: test
flags: --config=clang --test_timeout=1800
# s390x build-tools image built from bazel/external/Dockerfile.bazel
run_under: docker run --rm --env HOME=$HOME --env USER=$(id -un) --volume "$HOME:$HOME" --workdir $(pwd) --user $(id -u):$(id -g) --platform linux/s390x ghcr.io/proxy-wasm/build-tools:ubuntu-20.04-bazel-6.5.0
run_under: docker run --rm --env HOME=$HOME --env USER=$(id -un) --volume "$HOME:$HOME" --workdir $(pwd) --user $(id -u):$(id -g) --platform linux/s390x ghcr.io/proxy-wasm/build-tools:ubuntu-22.04-bazel-6.5.0
cache: true
- name: 'Wasmtime on macOS/x86_64'
engine: 'wasmtime'
Expand All @@ -270,7 +270,7 @@ jobs:
- name: 'WAVM on Linux/x86_64'
engine: 'wavm'
repo: 'com_github_wavm_wavm'
os: ubuntu-20.04
os: ubuntu-22.04
arch: x86_64
action: test
flags: --config=clang
Expand Down
1 change: 1 addition & 0 deletions bazel/dependencies.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def proxy_wasm_cpp_host_dependencies():
python_register_toolchains(
name = "python_3_9",
python_version = "3.9",
ignore_root_user_error = True, # for docker run
)

rust_repositories()
Expand Down
2 changes: 1 addition & 1 deletion bazel/external/Dockerfile.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# -- //test/...

# Update base image
ARG UBUNTU_VERSION=20.04
ARG UBUNTU_VERSION=22.04
FROM ubuntu:${UBUNTU_VERSION} as build
RUN apt update && apt upgrade -y
RUN apt autoremove -y
Expand Down

0 comments on commit 9ec5195

Please sign in to comment.