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 20, 2024
1 parent 4be5d24 commit 1a6cb20
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 18 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
15 changes: 5 additions & 10 deletions .github/workflows/kbs-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,10 @@ jobs:
ci:
strategy:
fail-fast: false
matrix:
rust:
- stable
- beta
- nightly
os:
- ubuntu-latest

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

Check failure on line 27 in .github/workflows/kbs-rust.yml

View workflow job for this annotation

GitHub Actions / lint workflow files

[actionlint] reported by reviewdog 🐶 context "env" is not allowed here. available contexts are "github", "inputs", "matrix", "needs", "strategy", "vars". see https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability for more details [expression] Raw Output: .github/workflows/kbs-rust.yml:27:18: context "env" is not allowed here. available contexts are "github", "inputs", "matrix", "needs", "strategy", "vars". see https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability for more details [expression]

steps:
- name: Code checkout
Expand All @@ -39,7 +34,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 1a6cb20

Please sign in to comment.