mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-28 03:17:08 +03:00
52 lines
1.5 KiB
YAML
52 lines
1.5 KiB
YAML
name: ci
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- master
|
|
- llvm16
|
|
concurrency:
|
|
# Cancels pending runs when a PR gets updated.
|
|
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:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
- name: Build and Test
|
|
run: sh ci/aarch64-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,
|
|
});
|