Skip to content

Commit 90987db

Browse files
authored
appveyor.yml: add linux/amd64 build job (ethereum#23548)
1 parent 5c1fc3b commit 90987db

File tree

2 files changed

+45
-17
lines changed

2 files changed

+45
-17
lines changed

.golangci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This file configures github.com/golangci/golangci-lint.
22

33
run:
4-
timeout: 3m
4+
timeout: 5m
55
tests: true
66
# default is true. Enables skipping of directories:
77
# vendor$, third_party$, testdata$, examples$, Godeps$, builtin$

appveyor.yml

+44-16
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,57 @@
1-
os: Visual Studio 2019
21
clone_depth: 5
32
version: "{branch}.{build}"
3+
4+
image:
5+
- Ubuntu
6+
- Visual Studio 2019
7+
48
environment:
59
matrix:
6-
# We use gcc from MSYS2 because it is the most recent compiler version available on
7-
# AppVeyor. Note: gcc.exe only works properly if the corresponding bin/ directory is
8-
# contained in PATH.
910
- GETH_ARCH: amd64
10-
GETH_CC: C:\msys64\mingw64\bin\gcc.exe
11-
PATH: C:\msys64\mingw64\bin;C:\Program Files (x86)\NSIS\;%PATH%
11+
GETH_MINGW: 'C:\msys64\mingw64'
1212
- GETH_ARCH: 386
13-
GETH_CC: C:\msys64\mingw32\bin\gcc.exe
14-
PATH: C:\msys64\mingw32\bin;C:\Program Files (x86)\NSIS\;%PATH%
13+
GETH_MINGW: 'C:\msys64\mingw32'
1514

1615
install:
1716
- git submodule update --init --depth 1
1817
- go version
19-
- "%GETH_CC% --version"
2018

21-
build_script:
22-
- go run build\ci.go install -dlgo -arch %GETH_ARCH% -cc %GETH_CC%
19+
for:
20+
# Linux has its own script without -arch and -cc.
21+
# The linux builder also runs lint.
22+
- matrix:
23+
only:
24+
- image: Ubuntu
25+
build_script:
26+
- go run build/ci.go lint
27+
- go run build/ci.go install -dlgo
28+
test_script:
29+
- go run build/ci.go test -dlgo -coverage
2330

24-
after_build:
25-
- go run build\ci.go archive -arch %GETH_ARCH% -type zip -signer WINDOWS_SIGNING_KEY -upload gethstore/builds
26-
- go run build\ci.go nsis -arch %GETH_ARCH% -signer WINDOWS_SIGNING_KEY -upload gethstore/builds
31+
# linux/386 is disabled.
32+
- matrix:
33+
exclude:
34+
- image: Ubuntu
35+
GETH_ARCH: 386
2736

28-
test_script:
29-
- go run build\ci.go test -dlgo -arch %GETH_ARCH% -cc %GETH_CC% -coverage
37+
# Windows builds for amd64 + 386.
38+
- matrix:
39+
only:
40+
- image: Visual Studio 2019
41+
environment:
42+
# We use gcc from MSYS2 because it is the most recent compiler version available on
43+
# AppVeyor. Note: gcc.exe only works properly if the corresponding bin/ directory is
44+
# contained in PATH.
45+
GETH_CC: '%GETH_MINGW%\bin\gcc.exe'
46+
PATH: '%GETH_MINGW%\bin;C:\Program Files (x86)\NSIS\;%PATH%'
47+
build_script:
48+
- 'echo %GETH_ARCH%'
49+
- 'echo %GETH_CC%'
50+
- '%GETH_CC% --version'
51+
- go run build/ci.go install -dlgo -arch %GETH_ARCH% -cc %GETH_CC%
52+
after_build:
53+
# Upload builds. Note that ci.go makes this a no-op PR builds.
54+
- go run build/ci.go archive -arch %GETH_ARCH% -type zip -signer WINDOWS_SIGNING_KEY -upload gethstore/builds
55+
- go run build/ci.go nsis -arch %GETH_ARCH% -signer WINDOWS_SIGNING_KEY -upload gethstore/builds
56+
test_script:
57+
- go run build/ci.go test -dlgo -arch %GETH_ARCH% -cc %GETH_CC% -coverage

0 commit comments

Comments
 (0)