Skip to content

Commit

Permalink
Update ubuntu CI version due to deprecation (#39817)
Browse files Browse the repository at this point in the history
GitHub actions is deprecating the Ubuntu 18.04 runner so this updates our CI to no longer leverage it in favor of the latest Ubuntu runner.
x-ref: https://github.com/vercel/next.js/actions/runs/2904029539
x-ref: https://github.com/actions/runner-images
  • Loading branch information
ijjk committed Aug 22, 2022
1 parent 8bc93d0 commit 628d72f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/build_test_deploy.yml
Expand Up @@ -1060,7 +1060,7 @@ jobs:

build-native-test:
name: Build native binary for tests and metrics
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
# https://github.com/actions/virtual-environments/issues/1187
- name: tune linux network
Expand Down Expand Up @@ -1092,14 +1092,14 @@ jobs:
if: ${{ steps.docs-change.outputs.DOCS_CHANGE == 'nope' }}
with:
path: ~/.cargo/registry
key: stable-ubuntu-18.04-cargo-registry
key: stable-ubuntu-latest-cargo-registry

- name: Cache cargo index
uses: actions/cache@v3
if: ${{ steps.docs-change.outputs.DOCS_CHANGE == 'nope' }}
with:
path: ~/.cargo/git
key: stable-ubuntu-18.04-cargo-index
key: stable-ubuntu-latest-cargo-index

# We use week in the turbo cache key to keep the cache from infinitely growing
- id: get-week
Expand All @@ -1125,9 +1125,9 @@ jobs:
uses: actions/cache@v3
with:
path: ./packages/next-swc/target
key: next-swc-cargo-cache-dev-ubuntu-18.04-${{ hashFiles('**/Cargo.lock') }}
key: next-swc-cargo-cache-dev-ubuntu-latest-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
next-swc-cargo-cache-dev-ubuntu-18.04
next-swc-cargo-cache-dev-ubuntu-latest
# since the repo's dependencies aren't installed we need
# to install napi globally
Expand All @@ -1152,7 +1152,7 @@ jobs:
test-native:
name: Unit Test Native Code
runs-on: ubuntu-18.04
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
Expand All @@ -1176,7 +1176,7 @@ jobs:

test-wasm:
name: Test the wasm build
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
needs: [build, build-native-test, build-wasm-dev]

steps:
Expand Down Expand Up @@ -1294,7 +1294,7 @@ jobs:
export CC_aarch64_unknown_linux_gnu=/usr/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-gcc &&
turbo run build-native --cache-dir=".turbo" -- --release --target aarch64-unknown-linux-gnu &&
llvm-strip -x packages/next-swc/native/next-swc.*.node
- host: ubuntu-18.04
- host: ubuntu-latest
target: 'armv7-unknown-linux-gnueabihf'
setup: |
sudo apt-get update
Expand Down Expand Up @@ -1357,7 +1357,7 @@ jobs:
# https://github.com/actions/virtual-environments/issues/1187
- name: tune linux network
run: sudo ethtool -K eth0 tx off rx off
if: ${{ matrix.settings.host == 'ubuntu-18.04' }}
if: ${{ matrix.settings.host == 'ubuntu-latest' }}
- name: tune linux network
run: sudo ethtool -K eth0 tx off rx off
if: ${{ matrix.settings.host == 'ubuntu-latest' }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/pull_request_stats.yml
Expand Up @@ -13,7 +13,7 @@ env:
jobs:
build-native-dev:
name: Build dev binary for tests
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
# https://github.com/actions/virtual-environments/issues/1187
- name: tune linux network
Expand Down Expand Up @@ -46,14 +46,14 @@ jobs:
if: ${{ steps.docs-change.outputs.DOCS_CHANGE == 'nope' }}
with:
path: ~/.cargo/registry
key: stable-ubuntu-18.04-node@14-cargo-registry-trimmed-${{ hashFiles('**/Cargo.lock') }}
key: stable-ubuntu-latest-node@14-cargo-registry-trimmed-${{ hashFiles('**/Cargo.lock') }}

- name: Cache cargo index
uses: actions/cache@v1
if: ${{ steps.docs-change.outputs.DOCS_CHANGE == 'nope' }}
with:
path: ~/.cargo/git
key: stable-ubuntu-18.04-node@14-cargo-index-trimmed-${{ hashFiles('**/Cargo.lock') }}
key: stable-ubuntu-latest-node@14-cargo-index-trimmed-${{ hashFiles('**/Cargo.lock') }}

# We use week in the turbo cache key to keep the cache from infinitely growing
- id: get-week
Expand All @@ -78,9 +78,9 @@ jobs:
uses: actions/cache@v3
with:
path: ./packages/next-target
key: next-swc-cargo-cache-ubuntu-18.04--${{ hashFiles('**/Cargo.lock') }}
key: next-swc-cargo-cache-ubuntu-latest--${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
next-swc-cargo-cache-ubuntu-18.04
next-swc-cargo-cache-ubuntu-latest
# since the repo's dependencies aren't installed we need
# to install napi globally
Expand Down

0 comments on commit 628d72f

Please sign in to comment.