first draft

parent 19f5f9f9
......@@ -10,3 +10,4 @@ coverage_*.txt
__pycache__
venv
.pytest_cache
/dist
\ No newline at end of file
# Global section
env:
- CGO_ENABLED=1
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^[skip changelog]'
# We have multiple builds in order to fine tune
# cross compilations.
builds:
-
# OSX
id: arduino_cli_osx
binary: arduino-cli
env:
- CC=o64-clang
goos:
- darwin
goarch:
- amd64
ldflags:
- -s -w -X github.com/arduino/arduino-cli/version.versionString={{.Tag}} -X github.com/arduino/arduino-cli/version.commit=={{ .ShortCommit }}
-
# ARM
id: arduino_cli_arm
binary: arduino-cli
env:
- CC=arm-linux-gnueabihf-gcc
goos:
- linux
goarch:
- arm
goarm:
- 7
ldflags:
- -s -w -X github.com/arduino/arduino-cli/version.versionString={{.Tag}} -X github.com/arduino/arduino-cli/version.commit=={{ .ShortCommit }}
- "-extldflags '-static'"
-
# ARM64
id: arduino_cli_arm64
binary: arduino-cli
env:
- CC=aarch64-linux-gnu-gcc
goos:
- linux
goarch:
- arm64
ldflags:
- -s -w -X github.com/arduino/arduino-cli/version.versionString={{.Tag}} -X github.com/arduino/arduino-cli/version.commit=={{ .ShortCommit }}
- "-extldflags '-static'"
-
# All the other platforms
id: arduino_cli
binary: arduino-cli
goos:
- linux
- windows
goarch:
- amd64
- 386
ldflags:
- -s -w -X github.com/arduino/arduino-cli/version.versionString={{.Tag}} -X github.com/arduino/arduino-cli/version.commit=={{ .ShortCommit }}
- "-extldflags '-static'"
archives:
-
id: "arduino_cli"
format: tar.gz
format_overrides:
- goos: windows
format: zip
replacements:
amd64: 64bit
darwin: macOS
386: 32bit
arm: ARM
arm64: ARM64
linux: Linux
windows: Windows
files:
- README.md
- LICENSE.txt
FROM dockercore/golang-cross
# Couldn't fine a more elegant way to fix this
RUN ln -s /usr/include/asm-generic /usr/include/asm
RUN set -ex \
&& apt-get update -qq \
&& apt-get install -y -q --no-install-recommends \
g++-multilib
# Run in a different step to ease dependencies resolution
RUN set -ex \
&& apt-get install -y -q --no-install-recommends \
gcc-aarch64-linux-gnu \
gcc-arm-linux-gnueabihf
# Install goreleaser
ENV GORELEASER_VER 0.113.0
ENV GORELEASER_SHA 2379beebb6369b75ccead7f7a43269de700b51821feae3857701d106ed72bd63
RUN set -ex \
&& curl -o goreleaser.tar.gz -LO https://github.com/goreleaser/goreleaser/releases/download/v${GORELEASER_VER}/goreleaser_Linux_x86_64.tar.gz \
&& echo "$GORELEASER_SHA goreleaser.tar.gz" | sha256sum -c - || exit 1 \
&& tar -xzf goreleaser.tar.gz -C /usr/bin/ goreleaser \
&& rm goreleaser.tar.gz
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment