From c4ac188918f6a75e7876736b08917ad4c2ebddf3 Mon Sep 17 00:00:00 2001 From: Slug-Boi Date: Mon, 28 Oct 2024 19:05:52 +0100 Subject: [PATCH] ci: trying to fix build test ci workflow --- .github/workflows/build_test_release.yml | 2 +- ci/build_test_release.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_test_release.yml b/.github/workflows/build_test_release.yml index 89501fc..8f74ef2 100644 --- a/.github/workflows/build_test_release.yml +++ b/.github/workflows/build_test_release.yml @@ -13,7 +13,7 @@ jobs: uses: actions/setup-go@v3 - uses: actions/checkout@v3 - 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: mkdir ./dist - run: go run ci/build_test_release.go diff --git a/ci/build_test_release.go b/ci/build_test_release.go index 9eda0df..0660487 100644 --- a/ci/build_test_release.go +++ b/ci/build_test_release.go @@ -50,7 +50,7 @@ func main() { build := test. WithEnvVariable("GOOS", goos). 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))