Skip to content

Armhf #1

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

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ on:
release:
types: ["published"]
pull_request:
branches: ["main"]
branches: ["armhv"]

env:
GOLANG_VERSION: "1.22"

jobs:
build:
name: Build OS-Agent
Expand All @@ -19,6 +19,16 @@ jobs:
with:
fetch-depth: 0 # Needed for changelog generation

- name: Install gnueabihf
run: |
sudo apt-get -y update \
&& sudo apt-get -y install \
gcc-arm-linux-gnueabihf \
wget \
curl \
git \
build-essential

- name: Setup go ${{ env.GOLANG_VERSION }}
uses: actions/setup-go@v5
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
# branches to consider in the event; optional, defaults to all
branches:
- main
- armhv

jobs:
update_release_draft:
Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
dist/
/.idea/vcs.xml
/.idea/.gitignore
/.idea/modules.xml
/.idea/os-agent.iml
/.idea/inspectionProfiles/Project_Default.xml
11 changes: 4 additions & 7 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ before:
- go generate ./...
builds:
- env:
- CGO_ENABLED=0
- CGO_ENABLED=1
- CC=arm-linux-gnueabihf-gcc
- CC_FOR_TARGET=gcc-arm-linux-gnueabihf
binary: os-agent
ldflags:
- -s -w
Expand All @@ -16,13 +18,8 @@ builds:
goos:
- linux
goarch:
- 386
- amd64
- arm
- arm64
goarm:
- 5
- 6
- 7

checksum:
Expand All @@ -49,7 +46,7 @@ nfpms:
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else if eq .Arch "arm64" }}aarch64
{{- else }}{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}
{{- else }}armhf
{{ with .Mips }}_{{ . }}{{ end }}
{{ end }}
contents:
Expand Down