Skip to content

Commit

Permalink
Commit to adapt the feature to denoland#8710 and denoland#8622
Browse files Browse the repository at this point in the history
  • Loading branch information
mayankagarwals committed Dec 31, 2020
2 parents 7249a38 + 0163ced commit 028a082
Show file tree
Hide file tree
Showing 286 changed files with 15,266 additions and 5,280 deletions.
78 changes: 43 additions & 35 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,12 @@ jobs:
python-version: "2.7"
architecture: x64

- name: Install Node
uses: actions/setup-node@v2
with:
node-version: "14"
check-latest: true

- name: Remove unused versions of Python
if: startsWith(matrix.os, 'windows')
run: |-
Expand Down Expand Up @@ -162,41 +168,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 "[email protected]"
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') &&
Expand Down Expand Up @@ -246,6 +217,43 @@ 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 --doc
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 "[email protected]"
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: |
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ gclient_config.py_entries
# compiled wasm files
std/wasi/testdata/snapshot_preview1/

# generated v8 coverage files
cli/tests/.test_coverage/

# MacOS generated files
.DS_Store
.DS_Store?
Loading

0 comments on commit 028a082

Please sign in to comment.