Skip to content

Commit a66fc3f

Browse files
committed
chore(ci): simplify ci, test all features combination
1 parent 828338d commit a66fc3f

File tree

6 files changed

+10
-68
lines changed

6 files changed

+10
-68
lines changed

.cargo/config.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@ linker = "rust-lld"
66

77
[target.i686-pc-windows-msvc]
88
linker = "rust-lld"
9+
10+
[alias]
11+
ci-test = "hack test --workspace --feature-powerset --clean-per-run"

.github/actions/embed/Dockerfile

Lines changed: 0 additions & 15 deletions
This file was deleted.

.github/actions/embed/action.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

.github/actions/zts/Dockerfile

Lines changed: 0 additions & 15 deletions
This file was deleted.

.github/actions/zts/action.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 7 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,6 @@ jobs:
9191
- os: windows-latest
9292
rust: stable
9393
# setup-php doesn't support thread safe PHP on Linux and macOS.
94-
- os: macos-latest
95-
phpts: ts
96-
- os: ubuntu-latest
97-
phpts: ts
9894
- os: macos-latest
9995
clang: "17"
10096
- os: ubuntu-latest
@@ -152,29 +148,12 @@ jobs:
152148
echo "LIBCLANG_PATH=${{ runner.temp }}/llvm-${{ matrix.clang }}/lib" >> $GITHUB_ENV
153149
echo "LLVM_VERSION=${{ steps.clang.outputs.version }}" >> $GITHUB_ENV
154150
echo "LLVM_CONFIG_PATH=${{ runner.temp }}/llvm-${{ matrix.clang }}/bin/llvm-config" >> $GITHUB_ENV
155-
# Build
156-
- name: Build
151+
- name: Install cargo-hack
152+
uses: taiki-e/install-action@v2
153+
with:
154+
tool: cargo-hack
155+
# Test
156+
- name: Test features matrix
157157
env:
158158
EXT_PHP_RS_TEST: ""
159-
run: cargo build --release --features closure,anyhow --all
160-
# Test
161-
- name: Test inline examples
162-
# Macos fails on unstable rust. We skip the inline examples test for now.
163-
if: "!(contains(matrix.os, 'macos') && matrix.rust == 'nightly')"
164-
run: cargo test --release --all --features closure,anyhow --no-fail-fast
165-
build-zts:
166-
name: Build with ZTS
167-
runs-on: ubuntu-latest
168-
steps:
169-
- name: Checkout code
170-
uses: actions/checkout@v4
171-
- name: Build
172-
uses: ./.github/actions/zts
173-
test-embed:
174-
name: Test with embed
175-
runs-on: ubuntu-latest
176-
steps:
177-
- name: Checkout code
178-
uses: actions/checkout@v4
179-
- name: Test
180-
uses: ./.github/actions/embed
159+
run: cargo ci-test

0 commit comments

Comments
 (0)