Skip to content

Refactor crate loops in CI wasm jobs #1990

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 4, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 31 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -387,14 +387,39 @@ jobs:
if: endsWith(matrix.target, '-wasi')
run: |
set +x
for name in gix-sec; do
(cd -- "$name" && cargo build --target "$TARGET")
for crate in gix-sec; do
(cd -- "$crate" && cargo build --target "$TARGET")
done
- name: crates without feature toggles
run: |
crates=(
gix-actor
gix-attributes
gix-bitmap
gix-chunk
gix-command
gix-commitgraph
gix-config-value
gix-date
gix-glob
gix-hash
gix-hashtable
gix-mailmap
gix-object
gix-packetline
gix-path
gix-pathspec
gix-prompt
gix-quote
gix-refspec
gix-revision
gix-traverse
gix-url
gix-validate
)
set +x
for name in gix-actor gix-attributes gix-bitmap gix-chunk gix-command gix-commitgraph gix-config-value gix-date gix-glob gix-hash gix-hashtable gix-mailmap gix-object gix-packetline gix-path gix-pathspec gix-prompt gix-quote gix-refspec gix-revision gix-traverse gix-url gix-validate; do
(cd -- "$name" && cargo build --target "$TARGET")
for crate in "${crates[@]}"; do
(cd -- "$crate" && cargo build --target "$TARGET")
done
- name: features of gix-features
run: |
Expand All @@ -405,8 +430,8 @@ jobs:
- name: crates with 'wasm' feature
run: |
set +x
for name in gix-pack; do
(cd -- "$name" && cargo build --features wasm --target "$TARGET")
for crate in gix-pack; do
(cd -- "$crate" && cargo build --features wasm --target "$TARGET")
done
- name: gix-pack with all features (including wasm)
run: cd gix-pack && cargo build --all-features --target "$TARGET"
Expand Down
Loading