|
| 1 | +language: go |
| 2 | +go_import_path: github.com/ethereum/go-ethereum |
| 3 | +sudo: false |
| 4 | +jobs: |
| 5 | + allow_failures: |
| 6 | + - stage: build |
| 7 | + os: osx |
| 8 | + env: |
| 9 | + - azure-osx |
| 10 | + |
| 11 | + include: |
| 12 | + # These builders create the Docker sub-images for multi-arch push and each |
| 13 | + # will attempt to push the multi-arch image if they are the last builder |
| 14 | + - stage: build |
| 15 | + if: type = push |
| 16 | + os: linux |
| 17 | + arch: amd64 |
| 18 | + dist: bionic |
| 19 | + go: 1.21.x |
| 20 | + env: |
| 21 | + - docker |
| 22 | + services: |
| 23 | + - docker |
| 24 | + git: |
| 25 | + submodules: false # avoid cloning ethereum/tests |
| 26 | + before_install: |
| 27 | + - export DOCKER_CLI_EXPERIMENTAL=enabled |
| 28 | + script: |
| 29 | + - go run build/ci.go docker -image -manifest amd64,arm64 -upload ethereum/client-go |
| 30 | + |
| 31 | + - stage: build |
| 32 | + if: type = push |
| 33 | + os: linux |
| 34 | + arch: arm64 |
| 35 | + dist: bionic |
| 36 | + go: 1.21.x |
| 37 | + env: |
| 38 | + - docker |
| 39 | + services: |
| 40 | + - docker |
| 41 | + git: |
| 42 | + submodules: false # avoid cloning ethereum/tests |
| 43 | + before_install: |
| 44 | + - export DOCKER_CLI_EXPERIMENTAL=enabled |
| 45 | + script: |
| 46 | + - go run build/ci.go docker -image -manifest amd64,arm64 -upload ethereum/client-go |
| 47 | + |
| 48 | + # This builder does the Linux Azure uploads |
| 49 | + - stage: build |
| 50 | + if: type = push |
| 51 | + os: linux |
| 52 | + dist: bionic |
| 53 | + sudo: required |
| 54 | + go: 1.21.x |
| 55 | + env: |
| 56 | + - azure-linux |
| 57 | + git: |
| 58 | + submodules: false # avoid cloning ethereum/tests |
| 59 | + addons: |
| 60 | + apt: |
| 61 | + packages: |
| 62 | + - gcc-multilib |
| 63 | + script: |
| 64 | + # Build for the primary platforms that Trusty can manage |
| 65 | + - go run build/ci.go install -dlgo |
| 66 | + - go run build/ci.go archive -type tar -signer LINUX_SIGNING_KEY -signify SIGNIFY_KEY -upload gethstore/builds |
| 67 | + - go run build/ci.go install -dlgo -arch 386 |
| 68 | + - go run build/ci.go archive -arch 386 -type tar -signer LINUX_SIGNING_KEY -signify SIGNIFY_KEY -upload gethstore/builds |
| 69 | + |
| 70 | + # Switch over GCC to cross compilation (breaks 386, hence why do it here only) |
| 71 | + - sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install gcc-arm-linux-gnueabi libc6-dev-armel-cross gcc-arm-linux-gnueabihf libc6-dev-armhf-cross gcc-aarch64-linux-gnu libc6-dev-arm64-cross |
| 72 | + - sudo ln -s /usr/include/asm-generic /usr/include/asm |
| 73 | + |
| 74 | + - GOARM=5 go run build/ci.go install -dlgo -arch arm -cc arm-linux-gnueabi-gcc |
| 75 | + - GOARM=5 go run build/ci.go archive -arch arm -type tar -signer LINUX_SIGNING_KEY -signify SIGNIFY_KEY -upload gethstore/builds |
| 76 | + - GOARM=6 go run build/ci.go install -dlgo -arch arm -cc arm-linux-gnueabi-gcc |
| 77 | + - GOARM=6 go run build/ci.go archive -arch arm -type tar -signer LINUX_SIGNING_KEY -signify SIGNIFY_KEY -upload gethstore/builds |
| 78 | + - GOARM=7 go run build/ci.go install -dlgo -arch arm -cc arm-linux-gnueabihf-gcc |
| 79 | + - GOARM=7 go run build/ci.go archive -arch arm -type tar -signer LINUX_SIGNING_KEY -signify SIGNIFY_KEY -upload gethstore/builds |
| 80 | + - go run build/ci.go install -dlgo -arch arm64 -cc aarch64-linux-gnu-gcc |
| 81 | + - go run build/ci.go archive -arch arm64 -type tar -signer LINUX_SIGNING_KEY -signify SIGNIFY_KEY -upload gethstore/builds |
| 82 | + |
| 83 | + # This builder does the OSX Azure uploads |
| 84 | + - stage: build |
| 85 | + if: type = push |
| 86 | + os: osx |
| 87 | + osx_image: xcode14.2 |
| 88 | + go: 1.21.x |
| 89 | + env: |
| 90 | + - azure-osx |
| 91 | + git: |
| 92 | + submodules: false # avoid cloning ethereum/tests |
| 93 | + script: |
| 94 | + - go run build/ci.go install -dlgo |
| 95 | + - go run build/ci.go archive -type tar -signer OSX_SIGNING_KEY -signify SIGNIFY_KEY -upload gethstore/builds |
| 96 | + - go run build/ci.go install -dlgo -arch arm64 |
| 97 | + - go run build/ci.go archive -arch arm64 -type tar -signer OSX_SIGNING_KEY -signify SIGNIFY_KEY -upload gethstore/builds |
| 98 | + |
| 99 | + # These builders run the tests |
| 100 | + - stage: build |
| 101 | + os: linux |
| 102 | + arch: amd64 |
| 103 | + dist: bionic |
| 104 | + go: 1.21.x |
| 105 | + script: |
| 106 | + - travis_wait 30 go run build/ci.go test $TEST_PACKAGES |
| 107 | + |
| 108 | + - stage: build |
| 109 | + if: type = pull_request |
| 110 | + os: linux |
| 111 | + arch: arm64 |
| 112 | + dist: bionic |
| 113 | + go: 1.20.x |
| 114 | + script: |
| 115 | + - travis_wait 30 go run build/ci.go test $TEST_PACKAGES |
| 116 | + |
| 117 | + - stage: build |
| 118 | + os: linux |
| 119 | + dist: bionic |
| 120 | + go: 1.20.x |
| 121 | + script: |
| 122 | + - travis_wait 30 go run build/ci.go test $TEST_PACKAGES |
| 123 | + |
| 124 | + # This builder does the Ubuntu PPA nightly uploads |
| 125 | + - stage: build |
| 126 | + if: type = cron || (type = push && tag ~= /^v[0-9]/) |
| 127 | + os: linux |
| 128 | + dist: bionic |
| 129 | + go: 1.21.x |
| 130 | + env: |
| 131 | + - ubuntu-ppa |
| 132 | + git: |
| 133 | + submodules: false # avoid cloning ethereum/tests |
| 134 | + addons: |
| 135 | + apt: |
| 136 | + packages: |
| 137 | + - devscripts |
| 138 | + - debhelper |
| 139 | + - dput |
| 140 | + - fakeroot |
| 141 | + - python-bzrlib |
| 142 | + - python-paramiko |
| 143 | + script: |
| 144 | + - echo '|1|7SiYPr9xl3uctzovOTj4gMwAC1M=|t6ReES75Bo/PxlOPJ6/GsGbTrM0= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA0aKz5UTUndYgIGG7dQBV+HaeuEZJ2xPHo2DS2iSKvUL4xNMSAY4UguNW+pX56nAQmZKIZZ8MaEvSj6zMEDiq6HFfn5JcTlM80UwlnyKe8B8p7Nk06PPQLrnmQt5fh0HmEcZx+JU9TZsfCHPnX7MNz4ELfZE6cFsclClrKim3BHUIGq//t93DllB+h4O9LHjEUsQ1Sr63irDLSutkLJD6RXchjROXkNirlcNVHH/jwLWR5RcYilNX7S5bIkK8NlWPjsn/8Ua5O7I9/YoE97PpO6i73DTGLh5H9JN/SITwCKBkgSDWUt61uPK3Y11Gty7o2lWsBjhBUm2Y38CBsoGmBw==' >> ~/.ssh/known_hosts |
| 145 | + - go run build/ci.go debsrc -upload ethereum/ethereum -sftp-user geth-ci -signer "Go Ethereum Linux Builder <[email protected]>" |
| 146 | + |
| 147 | + # This builder does the Azure archive purges to avoid accumulating junk |
| 148 | + - stage: build |
| 149 | + if: type = cron |
| 150 | + os: linux |
| 151 | + dist: bionic |
| 152 | + go: 1.21.x |
| 153 | + env: |
| 154 | + - azure-purge |
| 155 | + git: |
| 156 | + submodules: false # avoid cloning ethereum/tests |
| 157 | + script: |
| 158 | + - go run build/ci.go purge -store gethstore/builds -days 14 |
| 159 | + |
| 160 | + # This builder executes race tests |
| 161 | + - stage: build |
| 162 | + if: type = cron |
| 163 | + os: linux |
| 164 | + dist: bionic |
| 165 | + go: 1.21.x |
| 166 | + script: |
| 167 | + - travis_wait 30 go run build/ci.go test -race $TEST_PACKAGES |
| 168 | + |
0 commit comments