History

Integrate wasm.yml into ci.yml

Even though initially it was just planned to cover `git-pack`, now it effectively covers all crates on way or another.

Sebastian Thiel committed 3 years ago

Commit e491e701 parent 4bc19d12 files · +20 −38Browse files

Showing the changes to .github (2 of 2 files). Show all

Unified · Split

2 files
  1. .github/workflows/ci.yml +20 −0
  2. .github/workflows/wasm.yml +0 −38
.github/workflows/ci.yml+20−0
@@ -151,3 +151,23 @@ jobs: · 150 unmodified lines
151151 - uses: EmbarkStudios/cargo-deny-action@v1
152152 with:
153153 command: check ${{ matrix.checks }}
154+ wasm:
155+ name: WebAssembly
156+ runs-on: ubuntu-latest
157+ continue-on-error: true
158+ strategy:
159+ matrix:
160+ target: [ wasm32-unknown-unknown, wasm32-wasi ]
161+ steps:
162+ - uses: actions/checkout@master
163+ - name: Install Rust
164+ run: rustup update stable && rustup default stable && rustup target add ${{ matrix.target }}
165+ - uses: Swatinem/rust-cache@v2
166+ - run: set +x; for name in git-actor git-attributes git-bitmap git-chunk git-command git-commitgraph git-date git-glob git-hash git-hashtable git-mailmap git-object git-packetline git-path git-pathspec git-quote git-refspec git-revision git-traverse git-validate; do (cd $name && cargo build --target ${{ matrix.target }}); done
167+ name: crates without feature toggles
168+ - run: set +x; for feature in progress fs-walkdir-parallel parallel io-pipe crc32 zlib zlib-rust-backend fast-sha1 rustsha1 cache-efficiency-debug; do (cd git-features && cargo build --features $feature --target ${{ matrix.target }}); done
169+ name: features of git-features
170+ - run: set +x; for name in git-diff git-pack; do (cd $name && cargo build --features wasm --target ${{ matrix.target }}); done
171+ name: crates with 'wasm' feature
172+ - run: cd git-pack && cargo build --all-features --target ${{ matrix.target }}
173+ name: git-pack with all features (including wasm)
.github/workflows/wasm.yml+0−38
@@ -1,38 +0,0 @@
1−name: WASM
2−
3−on:
4− push:
5− branches: [ main ]
6− tags-ignore: [ '*' ]
7− paths:
8− - '.github/**'
9− - 'git-pack/**'
10− - '*.toml'
11− pull_request:
12− branches: [ main ]
13− paths:
14− - '.github/**'
15− - 'git-pack/**'
16− - '*.toml'
17−
18−jobs:
19− wasm:
20− name: WebAssembly
21− runs-on: ubuntu-latest
22− continue-on-error: true
23− strategy:
24− matrix:
25− target: [ wasm32-unknown-unknown, wasm32-wasi ]
26− steps:
27− - uses: actions/checkout@master
28− - name: Install Rust
29− run: rustup update stable && rustup default stable && rustup target add ${{ matrix.target }}
30− - uses: Swatinem/rust-cache@v2
31− - run: set +x; for name in git-actor git-attributes git-bitmap git-chunk git-command git-commitgraph git-date git-glob git-hash git-hashtable git-mailmap git-object git-packetline git-path git-pathspec git-quote git-refspec git-revision git-traverse git-validate; do (cd $name && cargo build --target ${{ matrix.target }}); done
32− name: crates without feature toggles
33− - run: set +x; for feature in progress fs-walkdir-parallel parallel io-pipe crc32 zlib zlib-rust-backend fast-sha1 rustsha1 cache-efficiency-debug; do (cd git-features && cargo build --features $feature --target ${{ matrix.target }}); done
34− name: features of git-features
35− - run: set +x; for name in git-diff git-pack; do (cd $name && cargo build --features wasm --target ${{ matrix.target }}); done
36− name: crates with 'wasm' feature
37− - run: cd git-pack && cargo build --all-features --target ${{ matrix.target }}
38− name: git-pack with all features (including wasm)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t