From 2e1a0106d48282db04a740cb3092a3cbc7cf11f5 Mon Sep 17 00:00:00 2001 From: akagiyuu Date: Mon, 2 Jun 2025 17:06:16 +0700 Subject: [PATCH 1/4] refactor(ci): rename test step name --- .github/workflows/check.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index 39646ef..5372784 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -56,6 +56,6 @@ jobs: uses: awalsh128/cache-apt-pkgs-action@latest with: packages: openjdk-8-jdk build-essential python3 python-is-python3 libseccomp-dev libgbm-dev libxkbcommon-x11-0 pkg-config rustc - - name: Integration test + - name: Run test run: | cargo test --target ${{ matrix.target }} From 40cc5eb7c6637e57b0185afbd2356605e78a729e Mon Sep 17 00:00:00 2001 From: akagiyuu Date: Mon, 2 Jun 2025 17:22:29 +0700 Subject: [PATCH 2/4] feat(ci): simplify action flow --- .github/workflows/check.yaml | 29 ++++------------------------- 1 file changed, 4 insertions(+), 25 deletions(-) diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index 5372784..7af0fb6 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -2,14 +2,8 @@ on: workflow_dispatch: push: branches: main - paths-ignore: - - "**.md" - - ".github/**" pull_request: branches: main - paths-ignore: - - "**.md" - - ".github/**" permissions: contents: read @@ -20,10 +14,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@master - with: - toolchain: stable - components: clippy, rustfmt + - name: Install toolchain + run: rustup toolchain install stable --profile minimal --no-self-update - uses: Swatinem/rust-cache@v2 - name: Check Clippy run: cargo clippy --workspace -- -D warnings @@ -31,26 +23,13 @@ jobs: run: cargo fmt --all -- --check test: - runs-on: ${{ matrix.os }} + runs-on: ubuntu-latest strategy: fail-fast: false - matrix: - include: - - os: ubuntu-latest - target: x86_64-unknown-linux-gnu - toolchain: stable - - - os: ubuntu-latest - target: x86_64-unknown-linux-gnu - toolchain: nightly steps: - uses: actions/checkout@v4 - name: Install toolchain - uses: dtolnay/rust-toolchain@master - with: - target: ${{ matrix.target }} - toolchain: ${{ matrix.toolchain }} - - run: ${{ matrix.deps }} + run: rustup toolchain install stable --profile minimal --no-self-update - uses: Swatinem/rust-cache@v2 - name: Install dependencies uses: awalsh128/cache-apt-pkgs-action@latest From 5f3432cb738689ab757a208257d3ade8bf5315a9 Mon Sep 17 00:00:00 2001 From: akagiyuu Date: Mon, 2 Jun 2025 17:49:16 +0700 Subject: [PATCH 3/4] fix(ci): remove unused argument --- .github/workflows/check.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index 7af0fb6..6dc0c7b 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -36,5 +36,4 @@ jobs: with: packages: openjdk-8-jdk build-essential python3 python-is-python3 libseccomp-dev libgbm-dev libxkbcommon-x11-0 pkg-config rustc - name: Run test - run: | - cargo test --target ${{ matrix.target }} + run: cargo test From f9cebb86b32dc6a474b85828330bc3ed33598bfe Mon Sep 17 00:00:00 2001 From: akagiyuu Date: Mon, 2 Jun 2025 17:50:26 +0700 Subject: [PATCH 4/4] refactor: consistent workflow naming --- .github/workflows/check.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index 6dc0c7b..fdd059b 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -22,10 +22,8 @@ jobs: - name: Check rustfmt run: cargo fmt --all -- --check - test: + Test: runs-on: ubuntu-latest - strategy: - fail-fast: false steps: - uses: actions/checkout@v4 - name: Install toolchain