Skip to content

Commit 4d8bc61

Browse files
resolve conflicts
2 parents 5e85673 + 961d7b4 commit 4d8bc61

File tree

346 files changed

+11897
-13205
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

346 files changed

+11897
-13205
lines changed

.github/dependabot.yml

Lines changed: 24 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -1,83 +1,35 @@
11
version: 2
22
updates:
3-
- package-ecosystem: npm
4-
directory: /
5-
schedule:
6-
interval: daily
73
- package-ecosystem: github-actions
84
directory: /
95
schedule:
10-
interval: daily
6+
interval: weekly
7+
groups:
8+
ci-dependencies:
9+
applies-to: version-updates
10+
patterns: ["*"]
11+
update-types:
12+
- "minor"
13+
- "patch"
1114
- package-ecosystem: cargo
1215
directory: /
1316
schedule:
14-
interval: daily
15-
# CLI
16-
- package-ecosystem: cargo
17-
directory: /cli/
18-
schedule:
19-
interval: daily
20-
# CORE
21-
- package-ecosystem: cargo
22-
directory: /core/ast/
23-
schedule:
24-
interval: daily
25-
- package-ecosystem: cargo
26-
directory: /core/engine/
27-
schedule:
28-
interval: daily
29-
- package-ecosystem: cargo
30-
directory: /core/gc/
31-
schedule:
32-
interval: daily
33-
- package-ecosystem: cargo
34-
directory: /core/icu_provider/
35-
schedule:
36-
interval: daily
37-
- package-ecosystem: cargo
38-
directory: /core/interner/
39-
schedule:
40-
interval: daily
41-
- package-ecosystem: cargo
42-
directory: /core/macros/
43-
schedule:
44-
interval: daily
45-
- package-ecosystem: cargo
46-
directory: /core/parser/
47-
schedule:
48-
interval: daily
49-
- package-ecosystem: cargo
50-
directory: /core/profiler/
51-
schedule:
52-
interval: daily
53-
- package-ecosystem: cargo
54-
directory: /core/runtime/
55-
schedule:
56-
interval: daily
57-
- package-ecosystem: cargo
58-
directory: /core/temporal/
59-
schedule:
60-
interval: daily
61-
# TESTS
62-
- package-ecosystem: cargo
63-
directory: /tests/tester/
64-
schedule:
65-
interval: daily
66-
- package-ecosystem: cargo
67-
directory: /tests/macros/
68-
schedule:
69-
interval: daily
17+
interval: weekly
18+
groups:
19+
rust-dependencies:
20+
applies-to: version-updates
21+
patterns: ["*"]
22+
update-types:
23+
- "minor"
24+
- "patch"
7025
- package-ecosystem: cargo
7126
directory: /tests/fuzz/
7227
schedule:
73-
interval: daily
74-
# FFI
75-
- package-ecosystem: cargo
76-
directory: /ffi/wasm/
77-
schedule:
78-
interval: daily
79-
# TOOLS
80-
- package-ecosystem: cargo
81-
directory: /tools/
82-
schedule:
83-
interval: daily
28+
interval: weekly
29+
groups:
30+
fuzz-dependencies:
31+
applies-to: version-updates
32+
patterns: ["*"]
33+
update-types:
34+
- "minor"
35+
- "patch"

.github/workflows/main.yml

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

.github/workflows/pull_request.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,16 @@ jobs:
1212
runs-on: ubuntu-latest
1313
timeout-minutes: 120
1414
steps:
15-
- uses: actions/checkout@v4
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
1617
with:
1718
fetch-depth: 0
18-
- uses: actions-rs/[email protected]
19+
20+
- name: Install Rust toolchain
21+
uses: dtolnay/rust-toolchain@stable
1922
with:
2023
toolchain: stable
21-
override: true
22-
profile: minimal
24+
2325
- name: Cache cargo
2426
uses: actions/cache@v4
2527
with:

.github/workflows/release.yml

Lines changed: 29 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,12 @@ jobs:
1515
uses: actions/checkout@v4
1616

1717
- name: Install Rust toolchain
18-
uses: actions-rs/toolchain@v1
18+
uses: dtolnay/rust-toolchain@stable
1919
with:
2020
toolchain: stable
21-
profile: minimal
22-
override: true
2321

2422
- name: Install cargo-workspaces
25-
uses: actions-rs/[email protected]
26-
with:
27-
crate: cargo-workspaces
23+
run: cargo install cargo-workspaces
2824

2925
- name: Release
3026
env:
@@ -40,45 +36,38 @@ jobs:
4036
--no-git-commit \
4137
skip
4238
43-
doc-publish:
44-
name: Publish documentation
45-
needs: publish
39+
npm_publish:
40+
name: Publish NPM package (wasm)
4641
runs-on: ubuntu-latest
4742
timeout-minutes: 60
4843
steps:
49-
- uses: actions/checkout@v4
44+
- name: Checkout repository
45+
uses: actions/checkout@v4
46+
5047
- name: Install Rust toolchain
51-
uses: actions-rs/toolchain@v1
48+
uses: dtolnay/rust-toolchain@stable
5249
with:
5350
toolchain: stable
54-
profile: minimal
55-
override: true
51+
targets: wasm32-unknown-unknown
52+
5653
- name: Install wasm-pack
57-
uses: baptiste0928/[email protected]
54+
uses: jetli/[email protected]
5855
with:
59-
crate: wasm-pack
60-
- uses: actions/setup-node@v4
56+
version: 'latest'
57+
58+
- name: Build boa_wasm
59+
run: wasm-pack build --scope boa-dev ./ffi/wasm
60+
61+
- name: Set-up Node.js
62+
uses: actions/setup-node@v4
6163
with:
6264
node-version: "20"
63-
- run: npm ci
64-
- name: Cache npm build
65-
uses: actions/cache@v4
66-
with:
67-
path: |
68-
node_modules
69-
target
70-
ffi/wasm/pkg
71-
~/.cargo/git
72-
~/.cargo/registry
73-
key: ${{ runner.os }}-npm-build-target-${{ hashFiles('**/package-lock.json') }}
74-
- run: wasm-pack build ./ffi/wasm
75-
- run: npm run build:prod
76-
- name: Deploy
77-
uses: peaceiris/actions-gh-pages@v3
78-
with:
79-
publish_dir: ./dist
80-
destination_dir: playground
81-
github_token: ${{ secrets.GITHUB_TOKEN }}
65+
66+
- name: Set-up npm config for publishing
67+
run: npm config set -- '//registry.npmjs.org/:_authToken' "${{ secrets.NPM_TOKEN }}"
68+
69+
- name: Publish to npm
70+
run: npm publish ./ffi/wasm/pkg --access=public
8271

8372
release-binaries:
8473
name: Publish binaries
@@ -108,13 +97,14 @@ jobs:
10897
binary_name: boa.exe
10998
runs-on: ${{ matrix.os }}
11099
steps:
111-
- uses: actions/checkout@v4
100+
- name: Checkout repository
101+
uses: actions/checkout@v4
102+
112103
- name: Install Rust toolchain
113-
uses: actions-rs/toolchain@v1
104+
uses: dtolnay/rust-toolchain@stable
114105
with:
115106
toolchain: stable
116-
profile: minimal
117-
override: true
107+
118108
- name: Build
119109
run: cargo build --target ${{ matrix.target }} --verbose --release --locked --bin boa
120110
- name: Upload binaries to release

0 commit comments

Comments
 (0)