mirror of
https://github.com/Slug-Boi/cocommit.git
synced 2026-05-13 12:45:47 +00:00
ci: trying to fix build test ci workflow
This commit is contained in:
@@ -13,7 +13,7 @@ jobs:
|
|||||||
uses: actions/setup-go@v3
|
uses: actions/setup-go@v3
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Setup Go Workfile
|
- name: Setup Go Workfile
|
||||||
run: go work init ./ci ./
|
run: go work init ./ci ./ && rm src_code/go_src/cmd/cmd_test.go
|
||||||
- run: cd ci && go get dagger.io/dagger@latest && cd ..
|
- run: cd ci && go get dagger.io/dagger@latest && cd ..
|
||||||
- run: mkdir ./dist
|
- run: mkdir ./dist
|
||||||
- run: go run ci/build_test_release.go
|
- run: go run ci/build_test_release.go
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ func main() {
|
|||||||
build := test.
|
build := test.
|
||||||
WithEnvVariable("GOOS", goos).
|
WithEnvVariable("GOOS", goos).
|
||||||
WithEnvVariable("GOARCH", goarch).
|
WithEnvVariable("GOARCH", goarch).
|
||||||
WithExec([]string{"go", "build", "-o", filename})
|
WithExec([]string{"go", "build", "-o", filename}).WithEnvVariable("CI", "true")
|
||||||
|
|
||||||
buildDir = buildDir.WithDirectory(path, build.Directory(path))
|
buildDir = buildDir.WithDirectory(path, build.Directory(path))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user