Skip to content

Commit

Permalink
ci: delete nightly and beta check
Browse files Browse the repository at this point in the history
We do not need check the code against nightly and beta version.

Also, delete the matrix and replace with env

Signed-off-by: Xynnn007 <[email protected]>
  • Loading branch information
Xynnn007 committed Feb 21, 2024
1 parent 1054b17 commit f62ac44
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 21 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/as-basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,8 @@ jobs:
if: github.event_name == 'pull_request' || github.event_name == 'push'
name: Check
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rust:
- stable
env:
RUSTC_VERSION: 1.76.0
steps:
- name: Code checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -56,11 +53,11 @@ jobs:
sudo apt-get update
sudo apt-get install -y libsgx-dcap-quote-verify-dev
- name: Install Rust toolchain (${{ matrix.rust }})
- name: Install Rust toolchain (${{ env.RUSTC_VERSION }})
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
toolchain: ${{ env.RUSTC_VERSION }}
override: true
components: rustfmt, clippy

Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/as-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
name: TEE=${{ matrix.restful_tee_enum }} Generate Evidence Dynamically=${{ matrix.generate_evidence }}
runs-on: ${{ matrix.runner }}
env:
RUSTC_VERSION: 1.76.0
GRPC_TEE_ENUM: ${{ matrix.grpc_tee_enum }}
RESTFUL_TEE_ENUM: ${{ matrix.restful_tee_enum }}
steps:
Expand All @@ -36,7 +37,7 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
toolchain: ${{ env.RUSTC_VERSION }}

- uses: actions/setup-go@v5
with:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/kbs-docker-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ env:
jobs:
e2e-test:
runs-on: ubuntu-latest
env:
RUSTC_VERSION: 1.76.0
steps:
- name: Checkout KBS
uses: actions/checkout@v4
Expand All @@ -20,7 +22,7 @@ jobs:
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
toolchain: ${{ env.RUSTC_VERSION }}

- name: Build client
uses: actions-rs/cargo@v1
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/kbs-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ defaults:
jobs:
e2e-test:
runs-on: ${{ fromJSON(inputs.runs-on) }}

env:
RUSTC_VERSION: 1.76.0
steps:
- uses: actions/download-artifact@v4

Expand All @@ -33,7 +34,7 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
toolchain: ${{ env.RUSTC_VERSION }}

- uses: actions/setup-go@v5
with:
Expand Down
14 changes: 4 additions & 10 deletions .github/workflows/kbs-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,9 @@ jobs:
ci:
strategy:
fail-fast: false
matrix:
rust:
- stable
- beta
- nightly
os:
- ubuntu-latest

runs-on: ${{ matrix.os }}
env:
RUSTC_VERSION: 1.76.0
runs-on: ubuntu-latest

steps:
- name: Code checkout
Expand All @@ -39,7 +33,7 @@ jobs:
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
toolchain: ${{ env.RUSTC_VERSION }}
override: true
components: rustfmt, clippy
target: x86_64-unknown-linux-gnu
Expand Down

0 comments on commit f62ac44

Please sign in to comment.