fix: 修复CI workflow缺少checkout步骤和路径错误
Some checks failed
Build / build (push) Failing after 10s

This commit is contained in:
lafay
2026-03-19 10:59:42 +08:00
parent d0ff0a28df
commit a168e6f2e4

View File

@@ -17,24 +17,21 @@ jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- run: | - uses: actions/checkout@v4
cd schedule_converter
go mod download - name: Download dependencies
run: go mod download
- name: Build Linux AMD64 - name: Build Linux AMD64
run: | run: CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o ${{ env.APP_NAME }}-linux-amd64 .
cd schedule_converter
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o ${{ env.APP_NAME }}-linux-amd64 .
- name: Build Windows AMD64 - name: Build Windows AMD64
run: | run: CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags="-s -w" -o ${{ env.APP_NAME }}-windows-amd64.exe .
cd schedule_converter
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags="-s -w" -o ${{ env.APP_NAME }}-windows-amd64.exe .
- name: Upload artifacts - name: Upload artifacts
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: ${{ env.APP_NAME }} name: ${{ env.APP_NAME }}
path: | path: |
schedule_converter/${{ env.APP_NAME }}-linux-amd64 ${{ env.APP_NAME }}-linux-amd64
schedule_converter/${{ env.APP_NAME }}-windows-amd64.exe ${{ env.APP_NAME }}-windows-amd64.exe