-
-
Notifications
You must be signed in to change notification settings - Fork 413
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main' into fn-to-string-2nd-way
- Loading branch information
Showing
298 changed files
with
11,914 additions
and
5,612 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Nightly Build | ||
permissions: | ||
"contents": "write" | ||
|
||
# Schedule this workflow to run at midnight every day | ||
on: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
include: | ||
- target: x86_64-unknown-linux-gnu | ||
os: ubuntu-latest | ||
- target: x86_64-apple-darwin | ||
os: macos-latest | ||
- target: x86_64-pc-windows-msvc | ||
os: windows-latest | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Check out the repository | ||
uses: actions/checkout@v4 | ||
- name: Upload binaries to release | ||
uses: taiki-e/upload-rust-binary-action@v1 | ||
with: | ||
bin: boa | ||
# We may be able to provide a custom archive name, but | ||
# currently just going with the example default. | ||
target: ${{ matrix.target }} | ||
archive: $bin-$tag-$target | ||
ref: refs/tags/nightly | ||
token: ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: Update Test262 Results on Release | ||
|
||
on: | ||
release: | ||
types: | ||
- published | ||
|
||
jobs: | ||
update_test262_results: | ||
name: Update Test262 Results | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 60 | ||
steps: | ||
# Checkout the main repository | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
path: boa | ||
|
||
# Install Rust toolchain | ||
- name: Install Rust toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
toolchain: stable | ||
|
||
# Cache cargo dependencies | ||
- name: Cache cargo | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
target | ||
~/.cargo/git | ||
~/.cargo/registry | ||
key: ${{ runner.os }}-cargo-test262-${{ hashFiles('**/Cargo.lock') }} | ||
|
||
# Checkout the `data` repository | ||
- name: Checkout the data repo | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: boa-dev/data | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
path: data | ||
|
||
# Run the Test262 test suite | ||
- name: Run the test262 test suite | ||
run: | | ||
cd boa | ||
cargo run --release --bin boa_tester -- run -v -o ../data/test262 | ||
# Commit and push results back to the `data` repo | ||
- name: Commit and push results | ||
run: | | ||
cd data | ||
git config user.name "GitHub Actions" | ||
git config user.email "[email protected]" | ||
git add test262/results/${{ github.ref_name }} | ||
git commit -m "Update Test262 results for release ${{ github.ref_name }}" | ||
git push | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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.