Skip to content

Commit

Permalink
Fix: check build for arm architecture (#988)
Browse files Browse the repository at this point in the history
* bug: check build for arm architecture

Signed-off-by: Akash Kumar <meakash7902@gmail.com>

* bug: changed version to v4 and added arch=arm

Signed-off-by: Akash Kumar <meakash7902@gmail.com>

* bug: add arm build for other workflows

Signed-off-by: Akash Kumar <meakash7902@gmail.com>

* fix: removed arch arm

Signed-off-by: Akash Kumar <meakash7902@gmail.com>

* fix: add arm64 in arch

Signed-off-by: Akash Kumar <meakash7902@gmail.com>

* fix: add run-on-arch

Signed-off-by: Akash Kumar <meakash7902@gmail.com>

* fix: github actions

Signed-off-by: Akash Kumar <meakash7902@gmail.com>

* fix: build

Signed-off-by: Akash Kumar <meakash7902@gmail.com>

* fix: arm build

Signed-off-by: Akash Kumar <meakash7902@gmail.com>

* fix: build

Signed-off-by: Akash Kumar <meakash7902@gmail.com>

* fix: build arm

Signed-off-by: Akash Kumar <meakash7902@gmail.com>

* fix: build arm

Signed-off-by: Akash Kumar <meakash7902@gmail.com>

* fix: build arm

Signed-off-by: Akash Kumar <meakash7902@gmail.com>

* fix: build arm

Signed-off-by: Akash Kumar <meakash7902@gmail.com>

* fix: build arm

Signed-off-by: Akash Kumar <meakash7902@gmail.com>

* fix: build arm

Signed-off-by: Akash Kumar <meakash7902@gmail.com>

* fix: build arm

Signed-off-by: Akash Kumar <meakash7902@gmail.com>

* fix: build arm arm-runner-action complete

Signed-off-by: Akash Kumar <meakash7902@gmail.com>

* fix: added build arm in build job with GOARCH=arm

Signed-off-by: Akash Kumar <meakash7902@gmail.com>

* fix: check architecture

Signed-off-by: Akash Kumar <meakash7902@gmail.com>

* fix: rename binary

Signed-off-by: Akash Kumar <meakash7902@gmail.com>

* fix: list files

Signed-off-by: Akash Kumar <meakash7902@gmail.com>

* fix: check arch

Signed-off-by: Akash Kumar <meakash7902@gmail.com>

* fix: final commit

Signed-off-by: Akash Kumar <meakash7902@gmail.com>

* fix: revert to v2

Signed-off-by: Akash Kumar <meakash7902@gmail.com>

---------

Signed-off-by: Akash Kumar <meakash7902@gmail.com>
  • Loading branch information
AkashKumar7902 committed Oct 12, 2023
1 parent 4ad57f6 commit e48cae9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 120 deletions.
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 ./...

0 comments on commit e48cae9

Please sign in to comment.