diff --git a/.github/workflows/PRBuild.yml b/.github/workflows/PRBuild.yml index 006767f..c6e10f1 100644 --- a/.github/workflows/PRBuild.yml +++ b/.github/workflows/PRBuild.yml @@ -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: diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 87784a2..63342a4 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -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/