Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: check build for arm architecture #988

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
6770537
bug: check build for arm architecture
AkashKumar7902 Oct 9, 2023
3fc6152
bug: changed version to v4 and added arch=arm
AkashKumar7902 Oct 9, 2023
faaa6ff
bug: add arm build for other workflows
AkashKumar7902 Oct 9, 2023
bf74e41
fix: removed arch arm
AkashKumar7902 Oct 9, 2023
abbc3fa
fix: add arm64 in arch
AkashKumar7902 Oct 9, 2023
623737c
fix: add run-on-arch
AkashKumar7902 Oct 9, 2023
0dd620f
fix: github actions
AkashKumar7902 Oct 9, 2023
27e5a29
fix: build
AkashKumar7902 Oct 11, 2023
75a0d3f
fix: arm build
AkashKumar7902 Oct 11, 2023
1ed533f
fix: build
AkashKumar7902 Oct 11, 2023
67cc9bd
fix: build arm
AkashKumar7902 Oct 11, 2023
1cc1eaa
fix: build arm
AkashKumar7902 Oct 11, 2023
281e4b8
fix: build arm
AkashKumar7902 Oct 11, 2023
bf4f5f5
fix: build arm
AkashKumar7902 Oct 11, 2023
85589c8
fix: build arm
AkashKumar7902 Oct 11, 2023
9bc593d
fix: build arm
AkashKumar7902 Oct 11, 2023
b49707d
fix: build arm
AkashKumar7902 Oct 11, 2023
ac95330
fix: build arm arm-runner-action complete
AkashKumar7902 Oct 11, 2023
cb720e5
fix: added build arm in build job with GOARCH=arm
AkashKumar7902 Oct 11, 2023
e99dff9
fix: check architecture
AkashKumar7902 Oct 11, 2023
8880b67
fix: rename binary
AkashKumar7902 Oct 11, 2023
aaade27
fix: list files
AkashKumar7902 Oct 11, 2023
459d696
fix: check arch
AkashKumar7902 Oct 11, 2023
3ad2ec4
fix: final commit
AkashKumar7902 Oct 11, 2023
06ffd80
fix: revert to v2
AkashKumar7902 Oct 12, 2023
5d0446e
Merge branch 'main' into bug-check-build-for-arm-architecture
AkashKumar7902 Oct 12, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
61 changes: 3 additions & 58 deletions .github/workflows/go.yml
@@ -1,12 +1,8 @@
name: Go

on:
# push:
# branches: [ main ]
pull_request:
branches: [ main ]
# pull_request_target:
# types: [assigned, opened, synchronize, reopened]

jobs:

Expand All @@ -16,10 +12,6 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0

# - name: Check commit messages
# uses: wagoid/commitlint-github-action@v4

- name: Set up Go
uses: actions/setup-go@v2
with:
Expand All @@ -28,60 +20,13 @@ jobs:
- name: Build
run: go build -v ./...

# - name: Test-Export
# run: |
# go test -coverpkg=./... -coverprofile=coverage1.tmp.txt -covermode=atomic ./...
# cat coverage1.tmp.txt | grep -v -e "generated.go" -e "_gen.go" | grep -v -e "services.pb.go" -e "services_grpc.pb.go" > coverage1.txt
# env:
# KEPLOY_API_KEY: 81f83aeeedddf453966347dc136c66
# ENABLE_DEDUP: false
# ENABLE_TEST_EXPORT: true
# KEPLOY_APP_NAME: Keploy-Test-App-2
# KEPLOY_REPORT_PATH: ./

# - name: Test
# run: |
# export PORT=6790
# curl --silent --location "https://github.com/keploy/keploy/releases/latest/download/keploy_linux_amd64.tar.gz" | tar xz -C /tmp
# sudo mv /tmp/keploy /usr/local/bin && export KEPLOY_MODE=off && keploy &
# export PORT=6789 && export ENABLE_TEST_EXPORT=false && go test -coverpkg=./... -coverprofile=coverage.tmp.txt -covermode=atomic ./...
# cat coverage.tmp.txt | grep -v -e "http/regression/request.go" | grep -v -e "generated.go" -e "_gen.go" | grep -v -e "services.pb.go" -e "services_grpc.pb.go" > coverage.txt
# env:
# ENABLE_DEDUP: true
# ENABLE_TELEMETRY: false

# - name: Test-withDeDupEnabled
# run: |
# go test -coverpkg=./... -coverprofile=coverage3.tmp.txt -covermode=atomic ./...
# cat coverage3.tmp.txt | grep -v "mode: atomic" | grep -v -e "generated.go" -e "_gen.go" | grep -v -e "services.pb.go" -e "services_grpc.pb.go" > coverage3.txt
# cat coverage1.txt coverage2.txt coverage3.txt > coverage.txt
# env:
# KEPLOY_API_KEY: 81f83aeeedddf453966347dc136c66
# ENABLE_DEDUP: true
# ENABLE_TEST_EXPORT: false


# - uses: codecov/codecov-action@v2
# with:
# files: ./coverage.txt
# - name: Install goveralls
# run: go install github.com/mattn/goveralls@latest
# - name: Send coverage
# env:
# COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: |
# goveralls -coverprofile=coverage.txt -service=github



# - name: Install extra dependencies
# run: npm install -g @semantic-release/exec

- name: Build arm
run: GOOS=linux GOARCH=arm64 go build -v ./...

- uses: codfish/semantic-release-action@v1
with:
dry_run: true
additional_packages: |
['@semantic-release/exec']
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

36 changes: 2 additions & 34 deletions .github/workflows/main.yml
Expand Up @@ -13,9 +13,6 @@ jobs:
with:
fetch-depth: 0

# - name: Check commit messages
# uses: wagoid/commitlint-github-action@v4

- name: Set up Go
uses: actions/setup-go@v2
with:
Expand All @@ -25,34 +22,5 @@ jobs:
run: |
go build -v ./...

# - name: Test
# run: |
# export PORT=6790
# curl --silent --location "https://github.com/keploy/keploy/releases/latest/download/keploy_linux_amd64.tar.gz" | tar xz -C /tmp
# sudo mv /tmp/keploy /usr/local/bin && export KEPLOY_MODE=off && keploy &
# export PORT=6789 && export ENABLE_TEST_EXPORT=false && go test -coverpkg=./... -coverprofile=coverage.tmp.txt -covermode=atomic ./...
# cat coverage.tmp.txt | grep -v -e "http/regression/request.go" | grep -v -e "generated.go" -e "_gen.go" | grep -v -e "services.pb.go" -e "services_grpc.pb.go" > coverage.txt
# env:
# ENABLE_DEDUP: true
# ENABLE_TELEMETRY: false



# - uses: codecov/codecov-action@v2
# with:
# files: ./coverage.txt
# - name: Install goveralls
# run: go install github.com/mattn/goveralls@latest
# - name: Send coverage
# env:
# COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: goveralls -coverprofile=coverage.txt -service=github

# # - name: Install extra dependencies
# # run: npm install -g @semantic-release/exec
# - uses: codfish/semantic-release-action@additional-packages
# with:
# additional_packages: |
# ['@semantic-release/exec']
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build arm
run: GOOS=linux GOARCH=arm64 go build -v ./...
30 changes: 2 additions & 28 deletions .github/workflows/sample-run.yml
Expand Up @@ -21,31 +21,5 @@ jobs:
run: |
go build -v ./...

# - name: Setup Java
# uses: actions/setup-java@v3
# with:
# java-version: "11"
# distribution: "temurin"

# - name: Setup java Sample project
# run: |
# git clone https://github.com/keploy/samples-java.git &&
# curl 'https://repo1.maven.org/maven2/io/keploy/agent/1.2.6/agent-1.2.6.jar' --compressed --output samples-java/agent.jar -slient

# - name: Run Keploy and java project
# run: |
# sudo mkdir /root/keploy-config &&
# sudo touch /root/keploy-config/installation-id.yaml &&
# echo "ObjectID(\"6400772dd1bc96b3c5ebffec\")" > sudo /root/keploy-config/installation-id.yaml &&
# go run ./cmd/server/main.go &
# sudo apt update &&
# sudo apt install maven -y &&
# cd samples-java &&
# export KEPLOY_MODE=test &&
# export JAVA_TOOL_OPTIONS=-javaagent:${PWD}/agent.jar &&
# count=5
# for i in $(seq $count); do
# mvn spring-boot:run
# done
# echo installation-id &&
# sudo cat /root/keploy-config/installation-id.yaml
- name: Build arm
run: GOOS=linux GOARCH=arm64 go build -v ./...