| author | |
| committer | |
| log | f71d4cfdaf8e8cffe7e6737e9dd2f092bf85777c |
| tree | 7e47b435892ffb27669d80c8737f6bbf670368be |
| parent | f616c4b91dec3ea4f233a52f6388acc565a6d3b3 |
2 files changed, 25 insertions(+), 0 deletions(-)
.github/workflows/ci.yaml+20| ... | @@ -10,6 +10,26 @@ concurrency: | ... | @@ -10,6 +10,26 @@ concurrency: |
| 10 | group: ${{ github.head_ref || github.run_id }}-${{ github.actor }} | 10 | group: ${{ github.head_ref || github.run_id }}-${{ github.actor }} |
| 11 | cancel-in-progress: true | 11 | cancel-in-progress: true |
| 12 | jobs: | 12 | jobs: |
| 13 | x86_64-linux-release: | ||
| 14 | timeout-minutes: 420 | ||
| 15 | runs-on: [self-hosted, Linux, x86_64] | ||
| 16 | steps: | ||
| 17 | - name: Checkout | ||
| 18 | uses: actions/checkout@v3 | ||
| 19 | - name: Build and Test | ||
| 20 | run: sh ci/x86_64-linux-release.sh | ||
| 21 | - name: Post Perf Comment | ||
| 22 | uses: actions/github-script@v6 | ||
| 23 | with: | ||
| 24 | script: | | ||
| 25 | const fs = require('fs'); | ||
| 26 | const body = fs.readFileSync('build-new/perf.txt', 'utf8'); | ||
| 27 | github.rest.issues.createComment({ | ||
| 28 | issue_number: context.issue.number, | ||
| 29 | owner: context.repo.owner, | ||
| 30 | repo: context.repo.repo, | ||
| 31 | body: body, | ||
| 32 | }); | ||
| 13 | aarch64-linux-release: | 33 | aarch64-linux-release: |
| 14 | runs-on: [self-hosted, Linux, aarch64] | 34 | runs-on: [self-hosted, Linux, aarch64] |
| 15 | steps: | 35 | steps: |
ci/x86_64-linux-release.sh+5| ... | @@ -125,3 +125,8 @@ stage3/bin/zig build -p stage4 \ | ... | @@ -125,3 +125,8 @@ stage3/bin/zig build -p stage4 \ |
| 125 | --search-prefix "$PREFIX" \ | 125 | --search-prefix "$PREFIX" \ |
| 126 | --zig-lib-dir "$(pwd)/../lib" | 126 | --zig-lib-dir "$(pwd)/../lib" |
| 127 | stage4/bin/zig test ../test/behavior.zig -I../test | 127 | stage4/bin/zig test ../test/behavior.zig -I../test |
| 128 | |||
| 129 | # After all correctness checking, compare performance against the merge-base. | ||
| 130 | cd .. | ||
| 131 | sh ci/measure-perf-delta.sh "$ZIG" "$TARGET" "$MCPU" "$PREFIX" || \ | ||
| 132 | echo "$TARGET: Error occurred measuring the performance delta of this pull request." > build-new/perf.txt |