From 010d6f0052528bb85530bd28926eacad5aa71884 Mon Sep 17 00:00:00 2001 From: Derek Nola Date: Tue, 26 Nov 2024 10:36:18 -0800 Subject: [PATCH] Compare build times for different bois Signed-off-by: Derek Nola --- .github/workflows/build-k3s.yaml | 8 +++++++- .github/workflows/e2e.yaml | 15 +++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-k3s.yaml b/.github/workflows/build-k3s.yaml index 00b75d013428..8b993adcd572 100644 --- a/.github/workflows/build-k3s.yaml +++ b/.github/workflows/build-k3s.yaml @@ -53,4 +53,10 @@ jobs: uses: actions/upload-artifact@v4 with: name: k3s - path: dist/artifacts/k3s* \ No newline at end of file + path: dist/artifacts/k3s* + - name: "Dump CPU info" + run: | + cat /proc/cpuinfo + lscpu + sleep 3 | htop > ./htop.out + head -c ./htop.out | tail -c +10 \ No newline at end of file diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index b3f5fd9d5cc5..a91814de73fa 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -28,6 +28,21 @@ permissions: contents: read jobs: + test-8cpu: + uses: ./.github/workflows/build-k3s.yaml + with: + runner: ${{ github.repository == 'k3s-io/k3s' && 'equinix-8cpu-32gb' || 'ubuntu-latest' }} + upload-image: true + test-4cpu: + uses: ./.github/workflows/build-k3s.yaml + with: + runner: ${{ github.repository == 'k3s-io/k3s' && 'equinix-4cpu-16gb' || 'ubuntu-latest' }} + upload-image: true + test-gha: + uses: ./.github/workflows/build-k3s.yaml + with: + runner: ${{ github.repository == 'k3s-io/k3s' && 'ubuntu-latest' || 'ubuntu-latest' }} + upload-image: true build: uses: ./.github/workflows/build-k3s.yaml with: