Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-cli
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Operations
Operations
Metrics
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-cli
Commits
0eff33dc
Unverified
Commit
0eff33dc
authored
Jul 26, 2019
by
Massimiliano Pippi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
first draft
parent
19f5f9f9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
115 additions
and
0 deletions
+115
-0
.gitignore
.gitignore
+1
-0
.goreleaser.yml
.goreleaser.yml
+90
-0
Dockerfiles/builder/Dockerfile
Dockerfiles/builder/Dockerfile
+24
-0
No files found.
.gitignore
View file @
0eff33dc
...
...
@@ -10,3 +10,4 @@ coverage_*.txt
__pycache__
venv
.pytest_cache
/dist
\ No newline at end of file
.goreleaser.yml
0 → 100644
View file @
0eff33dc
# 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
Dockerfiles/builder/Dockerfile
0 → 100644
View file @
0eff33dc
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment