mirror of
https://github.com/ssut/payload-dumper-go.git
synced 2025-02-20 06:06:09 +00:00
* chore(ci): download macOS sdk in a separate job * chore(ci): upgrade to fedora 34 Now that we have newer macOS SDK this is now possible. * chore(ci): add build-darwin-arm64 target * chore(ci): download xz source code from dnf * chore(ci): handle osxcross cache properly
86 lines
1.9 KiB
YAML
86 lines
1.9 KiB
YAML
env:
|
|
- CGO_ENABLED=1
|
|
builds:
|
|
- id: build-windows-386
|
|
env:
|
|
- CC=i686-w64-mingw32-gcc
|
|
- CXX=i686-w64-mingw32-g++
|
|
goos:
|
|
- windows
|
|
goarch:
|
|
- 386
|
|
ldflags:
|
|
- '-extldflags "-static -s -w"'
|
|
- id: build-windows-amd64
|
|
env:
|
|
- CC=x86_64-w64-mingw32-gcc
|
|
- CXX=x86_64-w64-mingw32-g++
|
|
goos:
|
|
- windows
|
|
goarch:
|
|
- amd64
|
|
ldflags:
|
|
- '-extldflags "-static -s -w"'
|
|
- id: build-linux-386
|
|
goos:
|
|
- linux
|
|
goarch:
|
|
- 386
|
|
ldflags:
|
|
- '-extldflags "-static -s -w"'
|
|
- id: build-linux-amd64
|
|
goos:
|
|
- linux
|
|
goarch:
|
|
- amd64
|
|
ldflags:
|
|
- '-extldflags "-static -s -w"'
|
|
- id: build-linux-armv7
|
|
env:
|
|
- CC=arm-linux-gnueabihf-gcc
|
|
- CXX=arm-linux-gnueabihf-c++
|
|
- CGO_CFLAGS=-I/linux-armv7-buildroot/sys-root/include
|
|
- CGO_LDFLAGS=-L/linux-armv7-buildroot/sys-root/lib
|
|
goos:
|
|
- linux
|
|
goarch:
|
|
- arm
|
|
goarm:
|
|
- 7
|
|
ldflags:
|
|
- '-extldflags "-static -s -w"'
|
|
- id: build-linux-arm64
|
|
env:
|
|
- CC=aarch64-linux-gnu-gcc
|
|
- CXX=aarch64-linux-gnu-c++
|
|
- CGO_CFLAGS=-I/linux-aarch64-buildroot/sys-root/include
|
|
- CGO_LDFLAGS=-L/linux-aarch64-buildroot/sys-root/lib
|
|
goos:
|
|
- linux
|
|
goarch:
|
|
- arm64
|
|
ldflags:
|
|
- '-extldflags "-static -s -w"'
|
|
- id: build-darwin-amd64
|
|
env:
|
|
- CC=o64-clang
|
|
- CXX=o64-clang++
|
|
- CGO_CFLAGS=-I/darwin-amd64-buildroot/sys-root/include
|
|
- CGO_LDFLAGS=-L/darwin-amd64-buildroot/sys-root/lib
|
|
- PATH=/osxcross/target/bin:$PATH
|
|
goos:
|
|
- darwin
|
|
goarch:
|
|
- amd64
|
|
- id: build-darwin-arm64
|
|
env:
|
|
- CC=oa64-clang
|
|
- CXX=oa64-clang++
|
|
- CGO_CFLAGS=-I/darwin-aarch64-buildroot/sys-root/include
|
|
- CGO_LDFLAGS=-L/darwin-aarch64-buildroot/sys-root/lib
|
|
- PATH=/osxcross/target/bin:$PATH
|
|
goos:
|
|
- darwin
|
|
goarch:
|
|
- arm64
|