mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-04-24 17:12:16 +02:00
ci: use latest runner images in CI
The `ubuntu-18.04` image is deprecated and will be removed by 2023-04-01[1][2] with scheduled brownouts starting on 2022-10-03. Update all images to the latest available versions. [1]: https://github.blog/changelog/2022-08-09-github-actions-the-ubuntu-18-04-actions-runner-image-is-being-deprecated-and-will-be-removed-by-12-1-22/ [2]: https://github.com/actions/runner-images/issues/6002
This commit is contained in:
parent
515f120b5c
commit
609838aebd
36
.github/workflows/ci.yml
vendored
36
.github/workflows/ci.yml
vendored
@ -42,31 +42,31 @@ jobs:
|
|||||||
- win-gnu
|
- win-gnu
|
||||||
include:
|
include:
|
||||||
- build: pinned
|
- build: pinned
|
||||||
os: ubuntu-18.04
|
os: ubuntu-22.04
|
||||||
rust: 1.52.1
|
rust: 1.52.1
|
||||||
- build: stable
|
- build: stable
|
||||||
os: ubuntu-18.04
|
os: ubuntu-22.04
|
||||||
rust: stable
|
rust: stable
|
||||||
- build: beta
|
- build: beta
|
||||||
os: ubuntu-18.04
|
os: ubuntu-22.04
|
||||||
rust: beta
|
rust: beta
|
||||||
- build: nightly
|
- build: nightly
|
||||||
os: ubuntu-18.04
|
os: ubuntu-22.04
|
||||||
rust: nightly
|
rust: nightly
|
||||||
- build: nightly-musl
|
- build: nightly-musl
|
||||||
os: ubuntu-18.04
|
os: ubuntu-22.04
|
||||||
rust: nightly
|
rust: nightly
|
||||||
target: x86_64-unknown-linux-musl
|
target: x86_64-unknown-linux-musl
|
||||||
- build: nightly-32
|
- build: nightly-32
|
||||||
os: ubuntu-18.04
|
os: ubuntu-22.04
|
||||||
rust: nightly
|
rust: nightly
|
||||||
target: i686-unknown-linux-gnu
|
target: i686-unknown-linux-gnu
|
||||||
- build: nightly-mips
|
- build: nightly-mips
|
||||||
os: ubuntu-18.04
|
os: ubuntu-22.04
|
||||||
rust: nightly
|
rust: nightly
|
||||||
target: mips64-unknown-linux-gnuabi64
|
target: mips64-unknown-linux-gnuabi64
|
||||||
- build: nightly-arm
|
- build: nightly-arm
|
||||||
os: ubuntu-18.04
|
os: ubuntu-22.04
|
||||||
rust: nightly
|
rust: nightly
|
||||||
# For stripping release binaries:
|
# For stripping release binaries:
|
||||||
# docker run --rm -v $PWD/target:/target:Z \
|
# docker run --rm -v $PWD/target:/target:Z \
|
||||||
@ -75,25 +75,25 @@ jobs:
|
|||||||
# /target/arm-unknown-linux-gnueabihf/debug/rg
|
# /target/arm-unknown-linux-gnueabihf/debug/rg
|
||||||
target: arm-unknown-linux-gnueabihf
|
target: arm-unknown-linux-gnueabihf
|
||||||
- build: macos
|
- build: macos
|
||||||
os: macos-latest
|
os: macos-12
|
||||||
rust: nightly
|
rust: nightly
|
||||||
- build: win-msvc
|
- build: win-msvc
|
||||||
os: windows-2019
|
os: windows-2022
|
||||||
rust: nightly
|
rust: nightly
|
||||||
- build: win-gnu
|
- build: win-gnu
|
||||||
os: windows-2019
|
os: windows-2022
|
||||||
rust: nightly-x86_64-gnu
|
rust: nightly-x86_64-gnu
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Install packages (Ubuntu)
|
- name: Install packages (Ubuntu)
|
||||||
if: matrix.os == 'ubuntu-18.04'
|
if: matrix.os == 'ubuntu-22.04'
|
||||||
run: |
|
run: |
|
||||||
ci/ubuntu-install-packages
|
ci/ubuntu-install-packages
|
||||||
|
|
||||||
- name: Install packages (macOS)
|
- name: Install packages (macOS)
|
||||||
if: matrix.os == 'macos-latest'
|
if: matrix.os == 'macos-12'
|
||||||
run: |
|
run: |
|
||||||
ci/macos-install-packages
|
ci/macos-install-packages
|
||||||
|
|
||||||
@ -148,14 +148,14 @@ jobs:
|
|||||||
run: ${{ env.CARGO }} test --verbose --workspace ${{ env.TARGET_FLAGS }}
|
run: ${{ env.CARGO }} test --verbose --workspace ${{ env.TARGET_FLAGS }}
|
||||||
|
|
||||||
- name: Test for existence of build artifacts (Windows)
|
- name: Test for existence of build artifacts (Windows)
|
||||||
if: matrix.os == 'windows-2019'
|
if: matrix.os == 'windows-2022'
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
outdir="$(ci/cargo-out-dir "${{ env.TARGET_DIR }}")"
|
outdir="$(ci/cargo-out-dir "${{ env.TARGET_DIR }}")"
|
||||||
ls "$outdir/_rg.ps1" && file "$outdir/_rg.ps1"
|
ls "$outdir/_rg.ps1" && file "$outdir/_rg.ps1"
|
||||||
|
|
||||||
- name: Test for existence of build artifacts (Unix)
|
- name: Test for existence of build artifacts (Unix)
|
||||||
if: matrix.os != 'windows-2019'
|
if: matrix.os != 'windows-2022'
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
outdir="$(ci/cargo-out-dir "${{ env.TARGET_DIR }}")"
|
outdir="$(ci/cargo-out-dir "${{ env.TARGET_DIR }}")"
|
||||||
@ -172,13 +172,13 @@ jobs:
|
|||||||
# 'rg' binary (done in test-complete) with qemu, which is a pain and
|
# 'rg' binary (done in test-complete) with qemu, which is a pain and
|
||||||
# doesn't really gain us much. If shell completion works in one place,
|
# doesn't really gain us much. If shell completion works in one place,
|
||||||
# it probably works everywhere.
|
# it probably works everywhere.
|
||||||
if: matrix.target == '' && matrix.os != 'windows-2019'
|
if: matrix.target == '' && matrix.os != 'windows-2022'
|
||||||
shell: bash
|
shell: bash
|
||||||
run: ci/test-complete
|
run: ci/test-complete
|
||||||
|
|
||||||
rustfmt:
|
rustfmt:
|
||||||
name: rustfmt
|
name: rustfmt
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
@ -193,7 +193,7 @@ jobs:
|
|||||||
|
|
||||||
docs:
|
docs:
|
||||||
name: Docs
|
name: Docs
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
20
.github/workflows/release.yml
vendored
20
.github/workflows/release.yml
vendored
@ -24,7 +24,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
create-release:
|
create-release:
|
||||||
name: create-release
|
name: create-release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-22.04
|
||||||
# env:
|
# env:
|
||||||
# Set to force version number, e.g., when no tag exists.
|
# Set to force version number, e.g., when no tag exists.
|
||||||
# RG_VERSION: TEST-0.0.0
|
# RG_VERSION: TEST-0.0.0
|
||||||
@ -71,27 +71,27 @@ jobs:
|
|||||||
build: [linux, linux-arm, macos, win-msvc, win-gnu, win32-msvc]
|
build: [linux, linux-arm, macos, win-msvc, win-gnu, win32-msvc]
|
||||||
include:
|
include:
|
||||||
- build: linux
|
- build: linux
|
||||||
os: ubuntu-18.04
|
os: ubuntu-22.04
|
||||||
rust: nightly
|
rust: nightly
|
||||||
target: x86_64-unknown-linux-musl
|
target: x86_64-unknown-linux-musl
|
||||||
- build: linux-arm
|
- build: linux-arm
|
||||||
os: ubuntu-18.04
|
os: ubuntu-22.04
|
||||||
rust: nightly
|
rust: nightly
|
||||||
target: arm-unknown-linux-gnueabihf
|
target: arm-unknown-linux-gnueabihf
|
||||||
- build: macos
|
- build: macos
|
||||||
os: macos-latest
|
os: macos-12
|
||||||
rust: nightly
|
rust: nightly
|
||||||
target: x86_64-apple-darwin
|
target: x86_64-apple-darwin
|
||||||
- build: win-msvc
|
- build: win-msvc
|
||||||
os: windows-2019
|
os: windows-2022
|
||||||
rust: nightly
|
rust: nightly
|
||||||
target: x86_64-pc-windows-msvc
|
target: x86_64-pc-windows-msvc
|
||||||
- build: win-gnu
|
- build: win-gnu
|
||||||
os: windows-2019
|
os: windows-2022
|
||||||
rust: nightly-x86_64-gnu
|
rust: nightly-x86_64-gnu
|
||||||
target: x86_64-pc-windows-gnu
|
target: x86_64-pc-windows-gnu
|
||||||
- build: win32-msvc
|
- build: win32-msvc
|
||||||
os: windows-2019
|
os: windows-2022
|
||||||
rust: nightly
|
rust: nightly
|
||||||
target: i686-pc-windows-msvc
|
target: i686-pc-windows-msvc
|
||||||
|
|
||||||
@ -102,12 +102,12 @@ jobs:
|
|||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
|
|
||||||
- name: Install packages (Ubuntu)
|
- name: Install packages (Ubuntu)
|
||||||
if: matrix.os == 'ubuntu-18.04'
|
if: matrix.os == 'ubuntu-22.04'
|
||||||
run: |
|
run: |
|
||||||
ci/ubuntu-install-packages
|
ci/ubuntu-install-packages
|
||||||
|
|
||||||
- name: Install packages (macOS)
|
- name: Install packages (macOS)
|
||||||
if: matrix.os == 'macos-latest'
|
if: matrix.os == 'macos-12'
|
||||||
run: |
|
run: |
|
||||||
ci/macos-install-packages
|
ci/macos-install-packages
|
||||||
|
|
||||||
@ -159,7 +159,7 @@ jobs:
|
|||||||
cp "$outdir"/{rg.bash,rg.fish,_rg.ps1} "$staging/complete/"
|
cp "$outdir"/{rg.bash,rg.fish,_rg.ps1} "$staging/complete/"
|
||||||
cp complete/_rg "$staging/complete/"
|
cp complete/_rg "$staging/complete/"
|
||||||
|
|
||||||
if [ "${{ matrix.os }}" = "windows-2019" ]; then
|
if [ "${{ matrix.os }}" = "windows-2022" ]; then
|
||||||
cp "target/${{ matrix.target }}/release/rg.exe" "$staging/"
|
cp "target/${{ matrix.target }}/release/rg.exe" "$staging/"
|
||||||
7z a "$staging.zip" "$staging"
|
7z a "$staging.zip" "$staging"
|
||||||
echo "ASSET=$staging.zip" >> $GITHUB_ENV
|
echo "ASSET=$staging.zip" >> $GITHUB_ENV
|
||||||
|
Loading…
x
Reference in New Issue
Block a user