Skip to content

Commit ad331cc

Browse files
authored
Improve CI to include all the workspace (#32)
1 parent 14de329 commit ad331cc

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ jobs:
6363
run: cargo fmt -- --check
6464

6565
- name: Build the Project
66-
run: cargo build --all-features --verbose
66+
run: cargo build --workspace --all-features --verbose
6767

6868
- name: Run Tests
69-
run: cargo test --all-features --verbose
69+
run: cargo test --workspace --all-features --verbose
7070

7171
- name: Generate Documentation (${{ matrix.DOCTYPE }}, ${{ matrix.toolchain }})
7272
run: cargo doc --no-deps --all-features
@@ -108,13 +108,16 @@ jobs:
108108
sudo apt-get update
109109
sudo apt-get install -y clang llvm mingw-w64
110110
111+
- name: Ensure xtask compilable and runable on Linux
112+
run: cargo xtask --version
113+
111114
- name: Set up environment for Windows cross-compilation
112115
shell: bash
113116
run: |
114-
var_name=$(echo "${{ matrix.target.triple }}" | tr '-' '_' | tr '[:lower:]' '[:upper:]')
117+
trple=$(echo "${{ matrix.target.triple }}" | tr '-' '_' | tr '[:lower:]' '[:upper:]')
115118
echo "Setting CARGO_TARGET_${var_name}_LINKER=${{ matrix.target.linker }}"
116-
echo "CARGO_TARGET_${var_name}_LINKER=${{ matrix.target.linker }}" >> $GITHUB_ENV
117-
echo "CARGO_TARGET_${var_name}_AR=${{ matrix.target.ar }}" >> $GITHUB_ENV
119+
echo "CARGO_TARGET_${trple}_LINKER=${{ matrix.target.linker }}" >> $GITHUB_ENV
120+
echo "CARGO_TARGET_${trple}_AR=${{ matrix.target.ar }}" >> $GITHUB_ENV
118121
119122
- name: Build Project for target ${{ matrix.target.triple }}
120123
run: cargo build --target=${{ matrix.target.triple }} --all-features --release

0 commit comments

Comments
 (0)