Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable cgo
Browse files Browse the repository at this point in the history
mortenmj committed Oct 7, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 94fad13 commit 9f62222
Showing 3 changed files with 27 additions and 24 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/master.yaml
Original file line number Diff line number Diff line change
@@ -53,11 +53,11 @@
},
{
"name": "linux_amd64: build and test",
"run": "bazel test --test_output=errors --platforms=@rules_go//go/toolchain:linux_amd64 //..."
"run": "bazel test --test_output=errors --platforms=@rules_go//go/toolchain:linux_amd64_cgo //..."
},
{
"name": "linux_amd64: copy bb_portal",
"run": "rm -f bb_portal && bazel run --run_under cp --platforms=@rules_go//go/toolchain:linux_amd64 //cmd/bb_portal $(pwd)/bb_portal"
"run": "rm -f bb_portal && bazel run --run_under cp --platforms=@rules_go//go/toolchain:linux_amd64_cgo //cmd/bb_portal $(pwd)/bb_portal"
},
{
"name": "linux_amd64: upload bb_portal",
@@ -69,11 +69,11 @@
},
{
"name": "linux_386: build and test",
"run": "bazel test --test_output=errors --platforms=@rules_go//go/toolchain:linux_386 //..."
"run": "bazel test --test_output=errors --platforms=@rules_go//go/toolchain:linux_386_cgo //..."
},
{
"name": "linux_386: copy bb_portal",
"run": "rm -f bb_portal && bazel run --run_under cp --platforms=@rules_go//go/toolchain:linux_386 //cmd/bb_portal $(pwd)/bb_portal"
"run": "rm -f bb_portal && bazel run --run_under cp --platforms=@rules_go//go/toolchain:linux_386_cgo //cmd/bb_portal $(pwd)/bb_portal"
},
{
"name": "linux_386: upload bb_portal",
@@ -85,11 +85,11 @@
},
{
"name": "linux_arm: build and test",
"run": "bazel build --platforms=@rules_go//go/toolchain:linux_arm //..."
"run": "bazel build --platforms=@rules_go//go/toolchain:linux_arm_cgo //..."
},
{
"name": "linux_arm: copy bb_portal",
"run": "rm -f bb_portal && bazel run --run_under cp --platforms=@rules_go//go/toolchain:linux_arm //cmd/bb_portal $(pwd)/bb_portal"
"run": "rm -f bb_portal && bazel run --run_under cp --platforms=@rules_go//go/toolchain:linux_arm_cgo //cmd/bb_portal $(pwd)/bb_portal"
},
{
"name": "linux_arm: upload bb_portal",
@@ -101,11 +101,11 @@
},
{
"name": "linux_arm64: build and test",
"run": "bazel build --platforms=@rules_go//go/toolchain:linux_arm64 //..."
"run": "bazel build --platforms=@rules_go//go/toolchain:linux_arm64_cgo //..."
},
{
"name": "linux_arm64: copy bb_portal",
"run": "rm -f bb_portal && bazel run --run_under cp --platforms=@rules_go//go/toolchain:linux_arm64 //cmd/bb_portal $(pwd)/bb_portal"
"run": "rm -f bb_portal && bazel run --run_under cp --platforms=@rules_go//go/toolchain:linux_arm64_cgo //cmd/bb_portal $(pwd)/bb_portal"
},
{
"name": "linux_arm64: upload bb_portal",
@@ -117,11 +117,11 @@
},
{
"name": "darwin_amd64: build and test",
"run": "bazel build --platforms=@rules_go//go/toolchain:darwin_amd64 //..."
"run": "bazel build --platforms=@rules_go//go/toolchain:darwin_amd64_cgo //..."
},
{
"name": "darwin_amd64: copy bb_portal",
"run": "rm -f bb_portal && bazel run --run_under cp --platforms=@rules_go//go/toolchain:darwin_amd64 //cmd/bb_portal $(pwd)/bb_portal"
"run": "rm -f bb_portal && bazel run --run_under cp --platforms=@rules_go//go/toolchain:darwin_amd64_cgo //cmd/bb_portal $(pwd)/bb_portal"
},
{
"name": "darwin_amd64: upload bb_portal",
@@ -133,11 +133,11 @@
},
{
"name": "darwin_arm64: build and test",
"run": "bazel build --platforms=@rules_go//go/toolchain:darwin_arm64 //..."
"run": "bazel build --platforms=@rules_go//go/toolchain:darwin_arm64_cgo //..."
},
{
"name": "darwin_arm64: copy bb_portal",
"run": "rm -f bb_portal && bazel run --run_under cp --platforms=@rules_go//go/toolchain:darwin_arm64 //cmd/bb_portal $(pwd)/bb_portal"
"run": "rm -f bb_portal && bazel run --run_under cp --platforms=@rules_go//go/toolchain:darwin_arm64_cgo //cmd/bb_portal $(pwd)/bb_portal"
},
{
"name": "darwin_arm64: upload bb_portal",
@@ -149,11 +149,11 @@
},
{
"name": "freebsd_amd64: build and test",
"run": "bazel build --platforms=@rules_go//go/toolchain:freebsd_amd64 //cmd/bb_portal"
"run": "bazel build --platforms=@rules_go//go/toolchain:freebsd_amd64_cgo //cmd/bb_portal"
},
{
"name": "freebsd_amd64: copy bb_portal",
"run": "rm -f bb_portal && bazel run --run_under cp --platforms=@rules_go//go/toolchain:freebsd_amd64 //cmd/bb_portal $(pwd)/bb_portal"
"run": "rm -f bb_portal && bazel run --run_under cp --platforms=@rules_go//go/toolchain:freebsd_amd64_cgo //cmd/bb_portal $(pwd)/bb_portal"
},
{
"name": "freebsd_amd64: upload bb_portal",
@@ -165,11 +165,11 @@
},
{
"name": "windows_amd64: build and test",
"run": "bazel build --platforms=@rules_go//go/toolchain:windows_amd64 //..."
"run": "bazel build --platforms=@rules_go//go/toolchain:windows_amd64_cgo //..."
},
{
"name": "windows_amd64: copy bb_portal",
"run": "rm -f bb_portal.exe && bazel run --run_under cp --platforms=@rules_go//go/toolchain:windows_amd64 //cmd/bb_portal $(pwd)/bb_portal.exe"
"run": "rm -f bb_portal.exe && bazel run --run_under cp --platforms=@rules_go//go/toolchain:windows_amd64_cgo //cmd/bb_portal $(pwd)/bb_portal.exe"
},
{
"name": "windows_amd64: upload bb_portal",
14 changes: 7 additions & 7 deletions .github/workflows/pull-requests.yaml
Original file line number Diff line number Diff line change
@@ -57,31 +57,31 @@
},
{
"name": "linux_386: build and test",
"run": "bazel test --test_output=errors --platforms=@rules_go//go/toolchain:linux_386 //..."
"run": "bazel test --test_output=errors --platforms=@rules_go//go/toolchain:linux_386_cgo //..."
},
{
"name": "linux_arm: build and test",
"run": "bazel build --platforms=@rules_go//go/toolchain:linux_arm //..."
"run": "bazel build --platforms=@rules_go//go/toolchain:linux_arm_cgo //..."
},
{
"name": "linux_arm64: build and test",
"run": "bazel build --platforms=@rules_go//go/toolchain:linux_arm64 //..."
"run": "bazel build --platforms=@rules_go//go/toolchain:linux_arm64_cgo //..."
},
{
"name": "darwin_amd64: build and test",
"run": "bazel build --platforms=@rules_go//go/toolchain:darwin_amd64 //..."
"run": "bazel build --platforms=@rules_go//go/toolchain:darwin_amd64_cgo //..."
},
{
"name": "darwin_arm64: build and test",
"run": "bazel build --platforms=@rules_go//go/toolchain:darwin_arm64 //..."
"run": "bazel build --platforms=@rules_go//go/toolchain:darwin_arm64_cgo //..."
},
{
"name": "freebsd_amd64: build and test",
"run": "bazel build --platforms=@rules_go//go/toolchain:freebsd_amd64 //cmd/bb_portal"
"run": "bazel build --platforms=@rules_go//go/toolchain:freebsd_amd64_cgo //cmd/bb_portal"
},
{
"name": "windows_amd64: build and test",
"run": "bazel build --platforms=@rules_go//go/toolchain:windows_amd64 //..."
"run": "bazel build --platforms=@rules_go//go/toolchain:windows_amd64_cgo //..."
}
]
}
5 changes: 4 additions & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
@@ -18,7 +18,10 @@ git_override(

git_override(
module_name = "com_github_buildbarn_bb_storage",
commit = "8abbcfab01bcde294b20c2070baba9fd242bab7f",
commit = "0941111f29e31905e4081e6262bccf0c123940ed",
patches = [
"//:patches/com_buildbarn_bb_storage/workflows_template.diff",
],
remote = "https://github.com/buildbarn/bb-storage.git",
)

0 comments on commit 9f62222

Please sign in to comment.