ci: capitalization #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CompareCache | |
on: push | |
jobs: | |
benchmarking: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-22.04, depot-ubuntu-22.04] | |
steps: | |
- name: Install Benchmarking Tools | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y sysbench fio | |
- name: CPU Benchmark | |
run: | | |
echo "### CPU Benchmark ###" | |
sysbench cpu --threads=$(nproc) run | |
- name: Memory Benchmark | |
run: | | |
echo "### Memory Benchmark ###" | |
sysbench memory --threads=$(nproc) run | |
- name: Disk I/O Benchmark | |
run: | | |
echo "### Disk I/O Benchmark ###" | |
fio --name=seqwrite --filename=testfile --size=1G --bs=1M --iodepth=1 --rw=write | |
fio --name=seqread --filename=testfile --size=1G --bs=1M --iodepth=1 --rw=read | |
rm testfile | |
gather-system-info: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
OS: [ubuntu-22.04, depot-ubuntu-22.04] | |
steps: | |
- name: Gather System Information | |
run: | | |
echo "### CPU Information ###" | |
lscpu | |
echo "\n### Memory Information ###" | |
free -h | |
echo "\n### Disk Space Usage ###" | |
df -h | |
echo "\n### Operating System Details ###" | |
uname -a | |
echo "\n### CPU Details from /proc/cpuinfo ###" | |
grep 'model name' /proc/cpuinfo | uniq | |
echo "\n### Total Number of CPU Cores ###" | |
nproc | |
echo "\n### Total Number of CPU Threads ###" | |
lscpu | grep "Thread(s) per core" | |
echo "\n### Disk Details ###" | |
lsblk | |
build: | |
name: "Build: ${{ matrix.os }}" | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 60 | |
strategy: | |
matrix: | |
OS: [ubuntu-22.04, depot-ubuntu-22.04 ] | |
NODE_VERSION: [20] | |
fail-fast: true | |
steps: | |
# Disable crlf so all OS can share the same Turbo cache | |
# https://github.com/actions/checkout/issues/135 | |
- name: Disable git crlf | |
run: git config --global core.autocrlf false | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
repository: vercel/next.js | |
ref: v14.2.12 | |
fetch-depth: 0 | |
- name: Setup PNPM | |
uses: pnpm/action-setup@v3 | |
- name: Setup node@${{ matrix.NODE_VERSION }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.NODE_VERSION }} | |
cache: "pnpm" | |
- name: Install dependencies | |
run: pnpm install | |
- name: Build Packages | |
run: pnpm run build |