From f71d4cfdaf8e8cffe7e6737e9dd2f092bf85777c Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Thu, 14 Sep 2023 19:44:22 -0700 Subject: [PATCH] enable for x86_64 too --- .github/workflows/ci.yaml | 20 ++++++++++++++++++++ ci/x86_64-linux-release.sh | 5 +++++ 2 files changed, 25 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index daca2f4326..5c8a649030 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -10,6 +10,26 @@ concurrency: group: ${{ github.head_ref || github.run_id }}-${{ github.actor }} cancel-in-progress: true jobs: + x86_64-linux-release: + timeout-minutes: 420 + runs-on: [self-hosted, Linux, x86_64] + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Build and Test + run: sh ci/x86_64-linux-release.sh + - name: Post Perf Comment + uses: actions/github-script@v6 + with: + script: | + const fs = require('fs'); + const body = fs.readFileSync('build-new/perf.txt', 'utf8'); + github.rest.issues.createComment({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + body: body, + }); aarch64-linux-release: runs-on: [self-hosted, Linux, aarch64] steps: diff --git a/ci/x86_64-linux-release.sh b/ci/x86_64-linux-release.sh index 4dc5c37927..de626f7e79 100755 --- a/ci/x86_64-linux-release.sh +++ b/ci/x86_64-linux-release.sh @@ -125,3 +125,8 @@ stage3/bin/zig build -p stage4 \ --search-prefix "$PREFIX" \ --zig-lib-dir "$(pwd)/../lib" stage4/bin/zig test ../test/behavior.zig -I../test + +# After all correctness checking, compare performance against the merge-base. +cd .. +sh ci/measure-perf-delta.sh "$ZIG" "$TARGET" "$MCPU" "$PREFIX" || \ + echo "$TARGET: Error occurred measuring the performance delta of this pull request." > build-new/perf.txt