From a168e6f2e49b421a1c2b505d5e33c249fa79b166 Mon Sep 17 00:00:00 2001 From: lafay <2021211506@stu.hit.edu.cn> Date: Thu, 19 Mar 2026 10:59:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DCI=20workflow=E7=BC=BA?= =?UTF-8?q?=E5=B0=91checkout=E6=AD=A5=E9=AA=A4=E5=92=8C=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7960a69..e0de22c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,24 +17,21 @@ jobs: build: runs-on: ubuntu-latest steps: - - run: | - cd schedule_converter - go mod download + - uses: actions/checkout@v4 + + - name: Download dependencies + run: go mod download - name: Build Linux AMD64 - run: | - cd schedule_converter - CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o ${{ env.APP_NAME }}-linux-amd64 . + run: CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o ${{ env.APP_NAME }}-linux-amd64 . - name: Build Windows AMD64 - run: | - cd schedule_converter - CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags="-s -w" -o ${{ env.APP_NAME }}-windows-amd64.exe . + run: CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags="-s -w" -o ${{ env.APP_NAME }}-windows-amd64.exe . - name: Upload artifacts uses: actions/upload-artifact@v4 with: name: ${{ env.APP_NAME }} path: | - schedule_converter/${{ env.APP_NAME }}-linux-amd64 - schedule_converter/${{ env.APP_NAME }}-windows-amd64.exe \ No newline at end of file + ${{ env.APP_NAME }}-linux-amd64 + ${{ env.APP_NAME }}-windows-amd64.exe \ No newline at end of file