Skip to content

Commit

Permalink
Trying asmflags
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlovelltroy committed Oct 26, 2024
1 parent 9f4b5e2 commit ae4792f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/PRBuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,13 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install -y musl-tools musl musl-dev
sudo apt-get install -y gcc-aarch64-linux-gnu
sudo apt-get install -y g++-aarch64-linux-gnu
sudo apt-get install -y gcc-x86-64-linux-gnu
sudo apt-get install -y g++-x86-64-linux-gnu
sudo apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
sudo apt-get install -y gcc-x86-64-linux-gnu g++-x86-64-linux-gnu
sudo apt-get install -y qemu-user-static
sudo apt-get install -y binfmt-support
sudo update-binfmts --enable qemu-aarch64
sudo update-binfmts --display qemu-aarch64
sudo update-binfmts --enable qemu-arm
sudo update-binfmts --display qemu-arm
- name: Set up Go 1.23
uses: actions/setup-go@v5
with:
Expand Down
5 changes: 5 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ builds:
- arm64
tags:
- musl
env:
- CGO_ENABLED=1
asmflags:
- "GOARCH=arm64:CC=gcc-aarch64-linux-gnu"
- "GOARCH=amd64:CC=musl-gcc"

- id: smd-init
main: ./cmd/smd-init/
Expand Down

0 comments on commit ae4792f

Please sign in to comment.