Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: upgrade the Rust version used in CI #700

Merged
merged 2 commits into from
Mar 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 5 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,20 @@ env:
CERESMETA_IMAGE_NAME: ceresdb/ceresmeta-server:latest
CERESDB_IMAGE_NAME: ceresdb/ceresdb-server:latest
LOCK_FILE: Cargo.lock
RUST_VERSION: nightly-2023-02-02

jobs:
style-check:
name: style-check
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
matrix:
rust: [ nightly-2022-08-08 ]
steps:
- uses: actions/checkout@v3
with:
submodules: true
- run: |
rustup set auto-self-update disable
rustup toolchain install ${{ matrix.rust }} --profile minimal
rustup toolchain install ${RUST_VERSION} --profile minimal
- name: Release Disk Quota
run: |
sudo rm -rf /usr/local/lib/android # release about 10 GB
Expand Down Expand Up @@ -90,16 +88,13 @@ jobs:
name: unit-test
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
matrix:
rust: [ nightly-2022-08-08 ]
steps:
- uses: actions/checkout@v3
with:
submodules: true
- run: |
rustup set auto-self-update disable
rustup toolchain install ${{ matrix.rust }} --profile minimal
rustup toolchain install ${RUST_VERSION} --profile minimal
- name: Release Disk Quota
run: |
sudo rm -rf /usr/local/lib/android # release about 10 GB
Expand Down Expand Up @@ -134,9 +129,6 @@ jobs:
name: integration-test
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
matrix:
rust: [ nightly-2022-08-08 ]
steps:
- name: Download CeresMeta Code
uses: actions/checkout@v3
Expand Down Expand Up @@ -165,7 +157,7 @@ jobs:
debug-
- run: |
rustup set auto-self-update disable
rustup toolchain install ${{ matrix.rust }} --profile minimal
rustup toolchain install ${RUST_VERSION} --profile minimal
- name: Release Disk Quota
run: |
sudo rm -rf /usr/local/lib/android # release about 10 GB
Expand Down Expand Up @@ -200,9 +192,6 @@ jobs:
name: sdk-test
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
matrix:
rust: [ nightly-2022-08-08 ]
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -220,7 +209,7 @@ jobs:
debug-
- run: |
rustup set auto-self-update disable
rustup toolchain install ${{ matrix.rust }} --profile minimal
rustup toolchain install ${RUST_VERSION} --profile minimal
- name: Release Disk Quota
run: |
sudo rm -rf /usr/local/lib/android # release about 10 GB
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,19 @@ env:
RUSTFLAGS: "-C debuginfo=1"
CARGO_TERM_COLOR: always
RUST_BACKTRACE: "1"
LOCK_FILE: Cargo.lock
RUST_VERSION: nightly-2023-02-02

jobs:
coverage:
name: coverage
runs-on: ubuntu-latest
strategy:
matrix:
rust: [nightly-2022-08-08]
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Setup Rust toolchain
run: |
rustup toolchain install ${{ matrix.rust }}
rustup toolchain install ${{ env.RUST_VERSION }}
- name: Release Disk Quota
run: |
sudo rm -rf /usr/local/lib/android # release about 10 GB
Expand Down