Skip to content

Commit

Permalink
chore: try cross compile
Browse files Browse the repository at this point in the history
  • Loading branch information
jgillich committed Jan 21, 2024
1 parent d5a28e6 commit 09404c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ jobs:
run: echo "flags=--snapshot" >> $GITHUB_ENV
- name: Install dependencies
run: |
dpkg --add-architecture arm64
apt update
apt install -y libgtk-4-dev libgtksourceview-5-dev libadwaita-1-dev libgirepository1.0-dev git golang-go
apt install -y libgtk-4-dev libgtk-4-dev:arm64 libgtksourceview-5-dev libgtksourceview-5-dev:arm64 libadwaita-1-dev libadwaita-1-dev:arm64 libgirepository1.0-dev libgirepository1.0-dev:arm64 gcc-aarch64-linux-gnu libc6-dev-arm64-cross git golang-go
git config --global --add safe.directory '*'
- name: Checkout
uses: actions/checkout@v4
Expand Down
10 changes: 2 additions & 8 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,12 @@ builds:
# - windows
# - darwin
goarch:
# - amd64
- amd64
- arm64

archives:
- format: tar.gz
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
format_overrides:
- goos: windows
format: zip
Expand Down

0 comments on commit 09404c3

Please sign in to comment.