From b9fa9f11b0a4fb47e81765da6fcdd40282a27fad Mon Sep 17 00:00:00 2001 From: Decobus Date: Sun, 20 Jul 2025 00:35:21 -0400 Subject: [PATCH] Optimize CI workflow for self-hosted runners MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove Node.js matrix strategy since Node is pre-installed on self-hosted runners. This reduces build time by avoiding duplicate builds. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .forgejo/workflows/build.yml | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index a5313f1..b779fe7 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -9,21 +9,12 @@ on: jobs: build: runs-on: self-hosted - - strategy: - matrix: - node-version: [ 20, 22 ] + # Note: Node.js is pre-installed on self-hosted runners steps: - name: Checkout Repository uses: actions/checkout@v4 - - name: Set up Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 - with: - node-version: ${{ matrix.node-version }} - cache: 'npm' - - name: Clean NextJS cache run: rm -rf .next @@ -42,6 +33,6 @@ jobs: - name: Upload Build Artifact uses: actions/upload-artifact@v4 with: - name: obs-ss-${{ matrix.node-version }} + name: obs-ss-build include-hidden-files: 'true' path: ./.next/* \ No newline at end of file