mirror of
https://github.com/denoland/deno.git
synced 2025-01-03 12:58:54 -05:00
ci: use 'ubuntu-20.04' runner image rather than 'ubuntu-latest' (#12733)
The existing ubuntu-latest-xl runner image (based on Ubuntu 18.04 XL) is deprecated and will retire soon. Migrate to ubuntu-20.04-xl instead.
This commit is contained in:
parent
72a6231a61
commit
a2c8f554c4
1 changed files with 9 additions and 9 deletions
18
.github/workflows/ci.yml
vendored
18
.github/workflows/ci.yml
vendored
|
@ -25,18 +25,18 @@ jobs:
|
||||||
- os: windows-2019
|
- os: windows-2019
|
||||||
job: test
|
job: test
|
||||||
profile: release
|
profile: release
|
||||||
- os: ${{ github.repository == 'denoland/deno' && 'ubuntu-latest-xl' || 'ubuntu-latest' }}
|
- os: ${{ github.repository == 'denoland/deno' && 'ubuntu-20.04-xl' || 'ubuntu-20.04' }}
|
||||||
job: test
|
job: test
|
||||||
profile: release
|
profile: release
|
||||||
use_sysroot: true
|
use_sysroot: true
|
||||||
- os: ${{ github.repository == 'denoland/deno' && 'ubuntu-latest-xl' || 'ubuntu-latest' }}
|
- os: ${{ github.repository == 'denoland/deno' && 'ubuntu-20.04-xl' || 'ubuntu-20.04' }}
|
||||||
job: bench
|
job: bench
|
||||||
profile: release
|
profile: release
|
||||||
use_sysroot: true
|
use_sysroot: true
|
||||||
- os: ${{ github.repository == 'denoland/deno' && 'ubuntu-latest-xl' || 'ubuntu-latest' }}
|
- os: ${{ github.repository == 'denoland/deno' && 'ubuntu-20.04-xl' || 'ubuntu-20.04' }}
|
||||||
job: test
|
job: test
|
||||||
profile: debug
|
profile: debug
|
||||||
- os: ${{ github.repository == 'denoland/deno' && 'ubuntu-latest-xl' || 'ubuntu-latest' }}
|
- os: ${{ github.repository == 'denoland/deno' && 'ubuntu-20.04-xl' || 'ubuntu-20.04' }}
|
||||||
job: lint
|
job: lint
|
||||||
profile: debug
|
profile: debug
|
||||||
|
|
||||||
|
@ -165,7 +165,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
# Avoid running man-db triggers, which sometimes takes several minutes
|
# Avoid running man-db triggers, which sometimes takes several minutes
|
||||||
# to complete.
|
# to complete.
|
||||||
sudo apt-get remove -y --purge man-db
|
sudo apt-get remove --purge -y man-db
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install debootstrap
|
sudo apt-get install debootstrap
|
||||||
|
|
||||||
|
@ -190,9 +190,9 @@ jobs:
|
||||||
curl https://apt.llvm.org/llvm-snapshot.gpg.key |
|
curl https://apt.llvm.org/llvm-snapshot.gpg.key |
|
||||||
gpg --dearmor |
|
gpg --dearmor |
|
||||||
sudo dd of=/sysroot/etc/apt/trusted.gpg.d/llvm-snapshot.gpg
|
sudo dd of=/sysroot/etc/apt/trusted.gpg.d/llvm-snapshot.gpg
|
||||||
sudo chroot /sysroot apt update -y
|
sudo chroot /sysroot apt-get update
|
||||||
sudo chroot /sysroot apt install --no-install-recommends -y \
|
sudo chroot /sysroot apt-get install --no-install-recommends -y \
|
||||||
clang-13 lld-13
|
clang-13 lld-13
|
||||||
|
|
||||||
# Redirect ld invocations to ld.lld-13 inside the chroot environment.
|
# Redirect ld invocations to ld.lld-13 inside the chroot environment.
|
||||||
# Setting the 'LD' environment variable doesn't always work.
|
# Setting the 'LD' environment variable doesn't always work.
|
||||||
|
@ -621,7 +621,7 @@ jobs:
|
||||||
publish-canary:
|
publish-canary:
|
||||||
name: publish canary
|
name: publish canary
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
needs: ['build']
|
needs: ["build"]
|
||||||
if: github.repository == 'denoland/deno' &&
|
if: github.repository == 'denoland/deno' &&
|
||||||
(github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/'))
|
(github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/'))
|
||||||
steps:
|
steps:
|
||||||
|
|
Loading…
Reference in a new issue