Upgrade CI pipelines to Ubuntu 22.04 (#1341)

`ubuntu-20.04` is deprecated.
This commit is contained in:
Patrick Förster 2025-02-12 18:18:16 +01:00 committed by GitHub
parent 1f2c9d7c47
commit 1f08c3a2c8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 10 deletions

View file

@ -38,17 +38,17 @@ jobs:
- os: macos-latest
target: aarch64-apple-darwin
- os: ubuntu-20.04
- os: ubuntu-22.04
target: x86_64-unknown-linux-gnu
test: true
- os: ubuntu-20.04
- os: ubuntu-22.04
target: aarch64-unknown-linux-gnu
- os: ubuntu-20.04
- os: ubuntu-22.04
target: armv7-unknown-linux-gnueabihf
- os: ubuntu-20.04
- os: ubuntu-22.04
target: x86_64-unknown-linux-musl
steps:
- uses: actions/checkout@v4
@ -58,7 +58,7 @@ jobs:
- uses: Swatinem/rust-cache@v2
- name: Install cross-compilation dependencies
run: sudo apt-get install -y gcc-aarch64-linux-gnu gcc-arm-linux-gnueabihf
if: ${{ matrix.os == 'ubuntu-20.04' }}
if: ${{ matrix.os == 'ubuntu-22.04' }}
- name: Compile
run: cargo test --target ${{ matrix.target }} --all-features --no-run --locked
- name: Test

View file

@ -36,19 +36,19 @@ jobs:
target: aarch64-apple-darwin
archive: texlab-aarch64-macos.tar.gz
- os: ubuntu-20.04
- os: ubuntu-22.04
target: x86_64-unknown-linux-gnu
archive: texlab-x86_64-linux.tar.gz
- os: ubuntu-20.04
- os: ubuntu-22.04
target: aarch64-unknown-linux-gnu
archive: texlab-aarch64-linux.tar.gz
- os: ubuntu-20.04
- os: ubuntu-22.04
target: armv7-unknown-linux-gnueabihf
archive: texlab-armv7hf-linux.tar.gz
- os: ubuntu-20.04
- os: ubuntu-22.04
target: x86_64-unknown-linux-musl
archive: texlab-x86_64-alpine.tar.gz
steps:
@ -58,7 +58,7 @@ jobs:
targets: ${{ matrix.target }}
- name: Install cross-compilation dependencies
run: sudo apt-get install -y gcc-aarch64-linux-gnu gcc-arm-linux-gnueabihf
if: ${{ matrix.os == 'ubuntu-20.04' }}
if: ${{ matrix.os == 'ubuntu-22.04' }}
- name: Compile
run: cargo build --target ${{ matrix.target }} --all-features --release --locked
- name: Compress (Windows)