From 7d35f9b196a9182d74c7334ea7f257ad66f90099 Mon Sep 17 00:00:00 2001 From: Steve Yegge Date: Sat, 13 Dec 2025 06:53:57 -0800 Subject: [PATCH] fix(ci): use copy-workspace to move code to RAM disk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Can't checkout directly to R: drive. Instead: 1. Checkout normally 2. Use copy-workspace: true to copy to RAM disk 3. Run build/tests from R: working directory 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .github/workflows/ci.yml | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bd24cb5d..d189bdeb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -62,18 +62,17 @@ jobs: GOCACHE: R:\go-cache GOMODCACHE: R:\go-mod steps: - - name: Setup RAM Disk + - uses: actions/checkout@v6 + + - name: Setup RAM Disk and copy workspace uses: chad-golden/setup-ramdisk@v1.0.1 with: size-in-mb: 4096 drive-letter: 'R' + copy-workspace: true - name: Prepare RAM disk directories - run: New-Item -ItemType Directory -Force -Path R:\tmp, R:\go-cache, R:\go-mod, R:\work - - - uses: actions/checkout@v6 - with: - path: R:\work + run: New-Item -ItemType Directory -Force -Path R:\tmp, R:\go-cache, R:\go-mod - name: Set up Go uses: actions/setup-go@v5 @@ -86,7 +85,7 @@ jobs: git config --global user.email "ci@beads.test" - name: Build and Test cmd package - working-directory: R:\work + working-directory: R:\ run: | go build -v ./cmd/bd go test -v -short -timeout=30m -parallel=4 ./cmd/... @@ -102,18 +101,17 @@ jobs: GOCACHE: R:\go-cache GOMODCACHE: R:\go-mod steps: - - name: Setup RAM Disk + - uses: actions/checkout@v6 + + - name: Setup RAM Disk and copy workspace uses: chad-golden/setup-ramdisk@v1.0.1 with: size-in-mb: 4096 drive-letter: 'R' + copy-workspace: true - name: Prepare RAM disk directories - run: New-Item -ItemType Directory -Force -Path R:\tmp, R:\go-cache, R:\go-mod, R:\work - - - uses: actions/checkout@v6 - with: - path: R:\work + run: New-Item -ItemType Directory -Force -Path R:\tmp, R:\go-cache, R:\go-mod - name: Set up Go uses: actions/setup-go@v5 @@ -126,7 +124,7 @@ jobs: git config --global user.email "ci@beads.test" - name: Test internal packages - working-directory: R:\work + working-directory: R:\ run: go test -v -short -timeout=30m -parallel=4 ./internal/... lint: