-
-
Notifications
You must be signed in to change notification settings - Fork 419
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reestructure repo and CI improvements (#3505)
* Reestructure repo * cargo update & fmt * Fix CI * Add newline * Fix playground CI * Fix CI * Fix CI (for real this time) * Fix CI (fr fr)
- Loading branch information
Showing
697 changed files
with
475 additions
and
293 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,13 +25,13 @@ jobs: | |
toolchain: stable | ||
override: true | ||
profile: minimal | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
key: tarpaulin | ||
- name: Install cargo-tarpaulin | ||
uses: baptiste0928/[email protected] | ||
with: | ||
crate: cargo-tarpaulin | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
key: tarpaulin | ||
- name: Run tarpaulin | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
|
@@ -114,13 +114,13 @@ jobs: | |
override: true | ||
profile: minimal | ||
components: clippy | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
key: clippy | ||
- name: Install cargo-workspaces | ||
uses: actions-rs/[email protected] | ||
with: | ||
crate: cargo-workspaces | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
key: clippy | ||
- name: Clippy (All features) | ||
run: cargo workspaces exec cargo clippy --all-features --all-targets | ||
- name: Clippy (No features) | ||
|
@@ -162,16 +162,16 @@ jobs: | |
toolchain: stable | ||
override: true | ||
profile: minimal | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
key: build-fuzz | ||
- name: Install cargo-fuzz | ||
uses: actions-rs/[email protected] | ||
with: | ||
crate: cargo-fuzz | ||
version: latest | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
key: build-fuzz | ||
- name: Build fuzz | ||
run: cargo fuzz build -s none | ||
run: cd tests/fuzz && cargo fuzz build -s none --dev | ||
|
||
build-run-examples: | ||
name: Build & run examples | ||
|
@@ -184,13 +184,13 @@ jobs: | |
toolchain: stable | ||
override: true | ||
profile: minimal | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
key: build-run-examples | ||
- name: Install cargo-workspaces | ||
uses: actions-rs/[email protected] | ||
with: | ||
crate: cargo-workspaces | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
key: build-run-examples | ||
|
||
- name: Build (All features) | ||
run: cargo workspaces exec cargo build --all-features --all-targets --profile ci | ||
|
@@ -199,7 +199,7 @@ jobs: | |
|
||
- name: Run examples | ||
run: | | ||
cd boa_examples | ||
cd examples | ||
cargo run -p boa_examples --bin 2>&1 \ | ||
| grep -E '^ ' \ | ||
| xargs -n1 sh -c 'cargo run -p boa_examples --profile ci --bin $0 || exit 255' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,24 +35,25 @@ jobs: | |
toolchain: stable | ||
override: true | ||
profile: minimal | ||
- name: Install wasm-pack | ||
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh | ||
- uses: Swatinem/rust-cache@v2 | ||
- name: Cache npm build | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
node_modules | ||
target | ||
~/.cargo/git | ||
~/.cargo/registry | ||
boa_wasm/pkg | ||
key: ${{ runner.os }}-npm-build-target-${{ hashFiles('**/package-lock.json') }} | ||
- name: Install wasm-pack | ||
uses: baptiste0928/[email protected] | ||
with: | ||
crate: wasm-pack | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: "16" | ||
- run: npm ci | ||
- run: cd boa_wasm && wasm-pack --verbose build --out-name index --out-dir ./pkg | ||
- run: npm run build | ||
- name: Build Playground | ||
run: | | ||
wasm-pack build ./ffi/wasm --verbose | ||
npm run build | ||
- name: Install Playwright Browsers | ||
run: npx playwright install --with-deps | ||
- name: Run Playwright test | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.