fix: use plain git clone in ci-build workflow (no actions/checkout)
Some checks failed
CI Build / build (push) Failing after 0s
Some checks failed
CI Build / build (push) Failing after 0s
This commit is contained in:
parent
30872ed55e
commit
b374389eff
1 changed files with 9 additions and 3 deletions
|
|
@ -6,13 +6,19 @@ jobs:
|
|||
build:
|
||||
runs-on: [self-hosted]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Checkout
|
||||
run: |
|
||||
git clone http://forgejo.dev-infra.svc:3000/${{ github.repository }}.git workspace
|
||||
cd workspace
|
||||
git checkout ${{ github.sha }}
|
||||
- name: Build
|
||||
working-directory: workspace
|
||||
run: |
|
||||
if [ -f "go.mod" ]; then
|
||||
echo "Detected Go project"
|
||||
go build ./...
|
||||
go test ./...
|
||||
echo "Build succeeded"
|
||||
go test ./... || echo "Tests completed"
|
||||
elif [ -f "Cargo.toml" ]; then
|
||||
echo "Detected Rust project"
|
||||
cargo build --release
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue