mirror of https://github.com/boa-dev/boa.git
Iban Eguia
5 years ago
committed by
GitHub
4 changed files with 176 additions and 35 deletions
@ -1,33 +0,0 @@
|
||||
name: Boa Benchmarks on master |
||||
on: |
||||
push: |
||||
branches: |
||||
- master |
||||
|
||||
jobs: |
||||
benchmark: |
||||
name: Run Criterion benchmark |
||||
runs-on: ubuntu-latest |
||||
steps: |
||||
- uses: actions/checkout@v2 |
||||
- run: rustup toolchain update stable && rustup default stable |
||||
- name: Run benchmark |
||||
run: cargo bench -p Boa | tee output.txt |
||||
- name: Cache cargo registry |
||||
uses: actions/cache@v1 |
||||
with: |
||||
path: ~/.cargo/registry |
||||
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} |
||||
- name: Cache cargo build |
||||
uses: actions/cache@v1 |
||||
with: |
||||
path: target |
||||
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }} |
||||
- name: Store benchmark result |
||||
uses: jasonwilliams/github-action-benchmark@v1 |
||||
with: |
||||
name: Boa Benchmarks |
||||
tool: "criterion" |
||||
output-file-path: output.txt |
||||
auto-push: true |
||||
github-token: ${{ secrets.PERSONAL_GITHUB_TOKEN }} |
@ -0,0 +1,82 @@
|
||||
name: Master workflows |
||||
on: |
||||
push: |
||||
branches: |
||||
- master |
||||
|
||||
jobs: |
||||
benchmark: |
||||
name: Run Criterion benchmark |
||||
runs-on: ubuntu-latest |
||||
steps: |
||||
- uses: actions/checkout@v2 |
||||
- uses: actions-rs/toolchain@v1 |
||||
with: |
||||
toolchain: stable |
||||
override: true |
||||
profile: minimal |
||||
- name: Cache cargo registry |
||||
uses: actions/cache@v1 |
||||
with: |
||||
path: ~/.cargo/registry |
||||
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} |
||||
- name: Cache cargo index |
||||
uses: actions/cache@v1 |
||||
with: |
||||
path: ~/.cargo/git |
||||
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }} |
||||
- name: Cache cargo build |
||||
uses: actions/cache@v1 |
||||
with: |
||||
path: target |
||||
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }} |
||||
- name: Run benchmark |
||||
run: cargo bench -p Boa | tee output.txt |
||||
- name: Store benchmark result |
||||
uses: jasonwilliams/github-action-benchmark@v1 |
||||
with: |
||||
name: Boa Benchmarks |
||||
tool: "criterion" |
||||
output-file-path: output.txt |
||||
auto-push: true |
||||
github-token: ${{ secrets.PERSONAL_GITHUB_TOKEN }} |
||||
|
||||
doc-upload: |
||||
name: Upload documentation |
||||
runs-on: ubuntu-latest |
||||
steps: |
||||
- uses: actions/checkout@v2 |
||||
- uses: actions-rs/toolchain@v1 |
||||
with: |
||||
toolchain: stable |
||||
override: true |
||||
profile: minimal |
||||
- name: Cache cargo registry |
||||
uses: actions/cache@v1 |
||||
with: |
||||
path: ~/.cargo/registry |
||||
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} |
||||
- name: Cache cargo index |
||||
uses: actions/cache@v1 |
||||
with: |
||||
path: ~/.cargo/git |
||||
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }} |
||||
- name: Cache cargo build |
||||
uses: actions/cache@v1 |
||||
with: |
||||
path: target |
||||
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }} |
||||
- name: Generate documentation |
||||
uses: actions-rs/cargo@v1 |
||||
with: |
||||
command: doc |
||||
args: -v --document-private-items |
||||
- run: echo "<meta http-equiv=refresh content=0;url=boa/index.html>" > target/doc/index.html |
||||
- name: Upload documentation |
||||
uses: appleboy/gh-pages-action@0.0.2 |
||||
with: |
||||
username: ${{ secrets.USERNAME }} |
||||
password: ${{ secrets.PERSONAL_GITHUB_TOKEN }} |
||||
remote_url: https://github.com/${{ env.GITHUB_REPOSITORY }}.git |
||||
target_directory: target/doc |
||||
target_branch: gh-pages-test |
Loading…
Reference in new issue