Skip to content

Commit

Permalink
Update pick-build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mzz2017 authored Jun 16, 2024
1 parent f35fefd commit 366f221
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/pick-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ on:
description: 'Commit ID or branch name for dae-core'
required: false
default: 'main'
dae-core-remote:
description: 'Remote address of dae-core'
required: false
default: 'https://github.com/daeuniverse/dae.git'

jobs:
checkout-full-src:
Expand All @@ -37,7 +41,7 @@ jobs:
git checkout ${{ github.event.inputs.wing }}
export GOMODCACHE="${PWD}"/go-mod
go mod download -modcacherw
cd dae-core && git checkout ${{ github.event.inputs.dae-core }} && go mod download -modcacherw && cd ..
cd dae-core && git remote set-url origin ${{ github.event.inputs.dae-core-remote }} && git fetch origin && git checkout ${{ github.event.inputs.dae-core }} && go mod download -modcacherw && cd ..
find "$GOMODCACHE" -maxdepth 1 ! -name "cache" ! -name "go-mod" -exec rm -rf {} \;
sed -i 's/#export GOMODCACHE=$(PWD)\/go-mod/export GOMODCACHE=$(PWD)\/go-mod/' Makefile
working-directory: wing
Expand Down

0 comments on commit 366f221

Please sign in to comment.