Update GitHub Actions to ubuntu-latest: (#4357)

* Per actions/runner-images#6002, ubuntu-18.04 is being deprecated. If
  latest ever fails in the future, we'll need to fix the jobs anyway, so
  catch it early.

* Use long option names

* Force clang-format to ubuntu-20.04 because LLVM 10 is not available for 22.04
This commit is contained in:
Ed Hennis
2022-12-08 20:41:50 -08:00
committed by GitHub
parent c1e7fe2d93
commit a79fa2026b
3 changed files with 6 additions and 5 deletions

View File

@@ -4,16 +4,17 @@ on: [push, pull_request]
jobs: jobs:
check: check:
runs-on: ubuntu-18.04 runs-on: ubuntu-20.04
env: env:
CLANG_VERSION: 10 CLANG_VERSION: 10
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Install clang-format - name: Install clang-format
run: | run: |
codename=$( lsb_release --codename --short )
sudo tee /etc/apt/sources.list.d/llvm.list >/dev/null <<EOF sudo tee /etc/apt/sources.list.d/llvm.list >/dev/null <<EOF
deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-${CLANG_VERSION} main deb http://apt.llvm.org/${codename}/ llvm-toolchain-${codename}-${CLANG_VERSION} main
deb-src http://apt.llvm.org/bionic/ llvm-toolchain-bionic-${CLANG_VERSION} main deb-src http://apt.llvm.org/${codename}/ llvm-toolchain-${codename}-${CLANG_VERSION} main
EOF EOF
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add
sudo apt-get update sudo apt-get update

View File

@@ -6,7 +6,7 @@ on:
jobs: jobs:
job: job:
runs-on: ubuntu-18.04 runs-on: ubuntu-latest
container: container:
image: docker://rippleci/rippled-ci-builder:2944b78d22db image: docker://rippleci/rippled-ci-builder:2944b78d22db
steps: steps:

View File

@@ -4,7 +4,7 @@ on: [push, pull_request]
jobs: jobs:
check: check:
runs-on: ubuntu-18.04 runs-on: ubuntu-latest
env: env:
CLANG_VERSION: 10 CLANG_VERSION: 10
steps: steps: