mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 15:24:46 -05:00
build: upload canaries before tests (#8585)
This commit is contained in:
parent
e174479d22
commit
95ccc1a52f
1 changed files with 35 additions and 35 deletions
70
.github/workflows/ci.yml
vendored
70
.github/workflows/ci.yml
vendored
|
@ -162,41 +162,6 @@ jobs:
|
|||
if: matrix.kind == 'test_debug'
|
||||
run: cargo build --locked --all-targets
|
||||
|
||||
- name: Test release
|
||||
if: matrix.kind == 'test_release'
|
||||
run: cargo test --release --locked --all-targets
|
||||
|
||||
- name: Test debug
|
||||
if: matrix.kind == 'test_debug'
|
||||
run: cargo test --locked --all-targets
|
||||
|
||||
- name: Run Benchmarks
|
||||
if: matrix.kind == 'bench'
|
||||
run: cargo bench
|
||||
|
||||
- name: Post Benchmarks
|
||||
if: |
|
||||
matrix.kind == 'bench' &&
|
||||
github.repository == 'denoland/deno' &&
|
||||
github.ref == 'refs/heads/master'
|
||||
env:
|
||||
DENOBOT_PAT: ${{ secrets.DENOBOT_PAT }}
|
||||
run: |
|
||||
git clone --depth 1 -b gh-pages https://${DENOBOT_PAT}@github.com/denoland/benchmark_data.git gh-pages
|
||||
deno run --unstable -A ./tools/build_benchmark_jsons.js --release
|
||||
cd gh-pages
|
||||
git config user.email "propelml@gmail.com"
|
||||
git config user.name "denobot"
|
||||
git add .
|
||||
git commit --message "Update benchmarks"
|
||||
git push origin gh-pages
|
||||
|
||||
- name: Worker info
|
||||
if: matrix.kind == 'bench'
|
||||
run: |
|
||||
cat /proc/cpuinfo
|
||||
cat /proc/meminfo
|
||||
|
||||
- name: Pre-release (linux)
|
||||
if: |
|
||||
startsWith(matrix.os, 'ubuntu') &&
|
||||
|
@ -246,6 +211,41 @@ jobs:
|
|||
echo $(git rev-parse HEAD) > canary-latest.txt
|
||||
gsutil cp canary-latest.txt gs://dl.deno.land/canary-latest.txt
|
||||
|
||||
- name: Test release
|
||||
if: matrix.kind == 'test_release'
|
||||
run: cargo test --release --locked --all-targets
|
||||
|
||||
- name: Test debug
|
||||
if: matrix.kind == 'test_debug'
|
||||
run: cargo test --locked --all-targets
|
||||
|
||||
- name: Run Benchmarks
|
||||
if: matrix.kind == 'bench'
|
||||
run: cargo bench
|
||||
|
||||
- name: Post Benchmarks
|
||||
if: |
|
||||
matrix.kind == 'bench' &&
|
||||
github.repository == 'denoland/deno' &&
|
||||
github.ref == 'refs/heads/master'
|
||||
env:
|
||||
DENOBOT_PAT: ${{ secrets.DENOBOT_PAT }}
|
||||
run: |
|
||||
git clone --depth 1 -b gh-pages https://${DENOBOT_PAT}@github.com/denoland/benchmark_data.git gh-pages
|
||||
deno run --unstable -A ./tools/build_benchmark_jsons.js --release
|
||||
cd gh-pages
|
||||
git config user.email "propelml@gmail.com"
|
||||
git config user.name "denobot"
|
||||
git add .
|
||||
git commit --message "Update benchmarks"
|
||||
git push origin gh-pages
|
||||
|
||||
- name: Worker info
|
||||
if: matrix.kind == 'bench'
|
||||
run: |
|
||||
cat /proc/cpuinfo
|
||||
cat /proc/meminfo
|
||||
|
||||
- name: Release stable
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: |
|
||||
|
|
Loading…
Reference in a new issue