Skip to content

Commit

Permalink
release should work now
Browse files Browse the repository at this point in the history
  • Loading branch information
EItanya committed Nov 13, 2021
1 parent d23e6f5 commit 3b22e52
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-go-
- name: Upload Assets
run: make upload-github-release-assets
run: ls && make upload-github-release-assets
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
TAGGED_VERSION: ${{ github.event.release.tag_name }}
15 changes: 11 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,23 @@ docker-push:
# CLI
#----------------------------------------------------------------------------------

.PHONY: ebpfctl-linux-amd64
ebpfctl-linux-amd64: $(OUTDIR)/ebpfctl-linux-amd64

$(OUTDIR)/ebpfctl-linux-amd64: $(SOURCES)
CGO_ENABLED=0 GOARCH=amd64 GOOS=linux go build -ldflags=$(LDFLAGS) -gcflags=$(GCFLAGS) -o $@ ebpfctl/main.go

.PHONY: ebpfctl-linux-arm64
ebpfctl-linux-arm64: $(OUTDIR)/ebpfctl-linux-arm64
.PHONY: ebpfctl-linux-amd64
ebpfctl-linux-amd64: $(OUTDIR)/ebpfctl-linux-amd64.sha256
$(OUTDIR)/ebpfctl-linux-amd64.sha256: $(OUTDIR)/ebpfctl-linux-amd64
sha256sum $(OUTDIR)/ebpfctl-linux-amd64 > $@

$(OUTDIR)/ebpfctl-linux-arm64: $(SOURCES)
CGO_ENABLED=0 GOARCH=arm64 GOOS=linux go build -ldflags=$(LDFLAGS) -gcflags=$(GCFLAGS) -o $@ ebpfctl/main.go

.PHONY: ebpfctl-linux-arm64
ebpfctl-linux-arm64: $(OUTDIR)/ebpfctl-linux-arm64.sha256
$(OUTDIR)/ebpfctl-linux-arm64.sha256: $(OUTDIR)/ebpfctl-linux-arm64
sha256sum $(OUTDIR)/ebpfctl-linux-arm64 > $@

.PHONY: build-cli
build-cli: ebpfctl-linux-amd64 ebpfctl-linux-arm64

Expand Down
24 changes: 12 additions & 12 deletions ci/release_assets.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@ import (
func main() {
const buildDir = "_output"
const repoOwner = "solo-io"
const repoName = "ebpf"
const repoName = "eBPF"

assets := make([]githubutils.ReleaseAssetSpec, 3)
assets[0] = githubutils.ReleaseAssetSpec{
Name: "ebpfctl-linux-amd64",
ParentPath: buildDir,
UploadSHA: true,
assets := []githubutils.ReleaseAssetSpec{
{
Name: "ebpfctl-linux-amd64",
ParentPath: buildDir,
UploadSHA: true,
},
{
Name: "ebpfctl-linux-arm64",
ParentPath: buildDir,
UploadSHA: true,
},
}
assets[1] = githubutils.ReleaseAssetSpec{
Name: "ebpfctl-linux-arm64",
ParentPath: buildDir,
UploadSHA: true,
}

spec := githubutils.UploadReleaseAssetSpec{
Owner: repoOwner,
Repo: repoName,
Expand Down

0 comments on commit 3b22e52

Please sign in to comment.