Skip to content

Commit

Permalink
ci: finish
Browse files Browse the repository at this point in the history
  • Loading branch information
Wu-kung committed Oct 30, 2024
1 parent 5753998 commit 798455b
Show file tree
Hide file tree
Showing 10 changed files with 37 additions and 462 deletions.
75 changes: 37 additions & 38 deletions .github/workflows/bench_mako_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,52 +31,51 @@ jobs:
})
return comment.id
# bench:
# runs-on: ubuntu-latest
# needs: [create-comment]
# strategy:
# matrix:
# shardIndex: [1]
# shardTotal: [1]
# fail-fast: false
# steps:
# - uses: actions/checkout@v4
# - name: Init env
# uses: ./.github/actions/env
# - uses: ./.github/actions/build-mako
# with:
# path: ${{ env.MAKO_DIR }}

# - name: Install hyperfine
# run: sudo apt-get update && sudo apt-get install -y hyperfine

# - name: Run benchmark
# run: node bin/cli.js bench

# - name: List files
# run: ls -la

# - name: Upload benchmark results
# uses: actions/upload-artifact@v4
# with:
# name: benchmark-results
# path: ./benchmark-results.md
# if-no-files-found: error
bench:
runs-on: ubuntu-latest
needs: [create-comment]
strategy:
matrix:
shardIndex: [1]
shardTotal: [1]
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Init env
uses: ./.github/actions/env
- uses: ./.github/actions/build-mako
with:
path: ${{ env.MAKO_DIR }}

- name: Install hyperfine
run: sudo apt-get update && sudo apt-get install -y hyperfine

- name: Run benchmark
run: node bin/cli.js bench

- name: List files
run: ls -la

- name: Upload benchmark results
uses: actions/upload-artifact@v4
with:
name: benchmark-results
path: ./benchmark-results.md
if-no-files-found: error

comment-results:
runs-on: ubuntu-latest
# needs: [create-comment, bench]
needs: [create-comment]
needs: [create-comment, bench]
if: always()
steps:
- uses: actions/checkout@v4
- name: Check current working directory
run: pwd
# - name: Download benchmark results
# uses: actions/download-artifact@v4
# with:
# name: benchmark-results
# path: ./
- name: Download benchmark results
uses: actions/download-artifact@v4
with:
name: benchmark-results
path: ./
- name: List files
run: ls -la

Expand Down
4 changes: 0 additions & 4 deletions benchmark-results.md

This file was deleted.

46 changes: 0 additions & 46 deletions lib/bench.js

This file was deleted.

Empty file removed lib/compare.js
Empty file.
6 changes: 0 additions & 6 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,3 @@ export async function dirExist(p) {
return false;
}
}

export async function useAddons(addons, stage, ...args) {
for (const item of addons) {
await item[stage](...args);
}
}
79 changes: 0 additions & 79 deletions lib/scenarios/build-plugin.cjs

This file was deleted.

156 changes: 0 additions & 156 deletions lib/scenarios/index.js

This file was deleted.

Loading

0 comments on commit 798455b

Please sign in to comment.