Unverified Commit 628d72fb authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Update ubuntu CI version due to deprecation (#39817)

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
parent 8bc93d02
...@@ -1060,7 +1060,7 @@ jobs: ...@@ -1060,7 +1060,7 @@ jobs:
build-native-test: build-native-test:
name: Build native binary for tests and metrics name: Build native binary for tests and metrics
runs-on: ubuntu-18.04 runs-on: ubuntu-latest
steps: steps:
# https://github.com/actions/virtual-environments/issues/1187 # https://github.com/actions/virtual-environments/issues/1187
- name: tune linux network - name: tune linux network
...@@ -1092,14 +1092,14 @@ jobs: ...@@ -1092,14 +1092,14 @@ jobs:
if: ${{ steps.docs-change.outputs.DOCS_CHANGE == 'nope' }} if: ${{ steps.docs-change.outputs.DOCS_CHANGE == 'nope' }}
with: with:
path: ~/.cargo/registry path: ~/.cargo/registry
key: stable-ubuntu-18.04-cargo-registry key: stable-ubuntu-latest-cargo-registry
- name: Cache cargo index - name: Cache cargo index
uses: actions/cache@v3 uses: actions/cache@v3
if: ${{ steps.docs-change.outputs.DOCS_CHANGE == 'nope' }} if: ${{ steps.docs-change.outputs.DOCS_CHANGE == 'nope' }}
with: with:
path: ~/.cargo/git 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 # We use week in the turbo cache key to keep the cache from infinitely growing
- id: get-week - id: get-week
...@@ -1125,9 +1125,9 @@ jobs: ...@@ -1125,9 +1125,9 @@ jobs:
uses: actions/cache@v3 uses: actions/cache@v3
with: with:
path: ./packages/next-swc/target 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: | 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 # since the repo's dependencies aren't installed we need
# to install napi globally # to install napi globally
...@@ -1152,7 +1152,7 @@ jobs: ...@@ -1152,7 +1152,7 @@ jobs:
test-native: test-native:
name: Unit Test Native Code name: Unit Test Native Code
runs-on: ubuntu-18.04 runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
...@@ -1176,7 +1176,7 @@ jobs: ...@@ -1176,7 +1176,7 @@ jobs:
test-wasm: test-wasm:
name: Test the wasm build name: Test the wasm build
runs-on: ubuntu-18.04 runs-on: ubuntu-latest
needs: [build, build-native-test, build-wasm-dev] needs: [build, build-native-test, build-wasm-dev]
steps: steps:
...@@ -1294,7 +1294,7 @@ jobs: ...@@ -1294,7 +1294,7 @@ jobs:
export CC_aarch64_unknown_linux_gnu=/usr/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-gcc && 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 && turbo run build-native --cache-dir=".turbo" -- --release --target aarch64-unknown-linux-gnu &&
llvm-strip -x packages/next-swc/native/next-swc.*.node llvm-strip -x packages/next-swc/native/next-swc.*.node
- host: ubuntu-18.04 - host: ubuntu-latest
target: 'armv7-unknown-linux-gnueabihf' target: 'armv7-unknown-linux-gnueabihf'
setup: | setup: |
sudo apt-get update sudo apt-get update
...@@ -1357,7 +1357,7 @@ jobs: ...@@ -1357,7 +1357,7 @@ jobs:
# https://github.com/actions/virtual-environments/issues/1187 # https://github.com/actions/virtual-environments/issues/1187
- name: tune linux network - name: tune linux network
run: sudo ethtool -K eth0 tx off rx off 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 - name: tune linux network
run: sudo ethtool -K eth0 tx off rx off run: sudo ethtool -K eth0 tx off rx off
if: ${{ matrix.settings.host == 'ubuntu-latest' }} if: ${{ matrix.settings.host == 'ubuntu-latest' }}
......
...@@ -13,7 +13,7 @@ env: ...@@ -13,7 +13,7 @@ env:
jobs: jobs:
build-native-dev: build-native-dev:
name: Build dev binary for tests name: Build dev binary for tests
runs-on: ubuntu-18.04 runs-on: ubuntu-latest
steps: steps:
# https://github.com/actions/virtual-environments/issues/1187 # https://github.com/actions/virtual-environments/issues/1187
- name: tune linux network - name: tune linux network
...@@ -46,14 +46,14 @@ jobs: ...@@ -46,14 +46,14 @@ jobs:
if: ${{ steps.docs-change.outputs.DOCS_CHANGE == 'nope' }} if: ${{ steps.docs-change.outputs.DOCS_CHANGE == 'nope' }}
with: with:
path: ~/.cargo/registry 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 - name: Cache cargo index
uses: actions/cache@v1 uses: actions/cache@v1
if: ${{ steps.docs-change.outputs.DOCS_CHANGE == 'nope' }} if: ${{ steps.docs-change.outputs.DOCS_CHANGE == 'nope' }}
with: with:
path: ~/.cargo/git 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 # We use week in the turbo cache key to keep the cache from infinitely growing
- id: get-week - id: get-week
...@@ -78,9 +78,9 @@ jobs: ...@@ -78,9 +78,9 @@ jobs:
uses: actions/cache@v3 uses: actions/cache@v3
with: with:
path: ./packages/next-target 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: | 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 # since the repo's dependencies aren't installed we need
# to install napi globally # to install napi globally
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment