.gitea: port more builds from travis and fix PPA env (#31919)
Some checks are pending
Release Builds (push) / Linux Build (push) Waiting to run
Release Builds (push) / Linux Build (arm) (push) Waiting to run
Release Builds (push) / Docker Image (push) Waiting to run

This commit is contained in:
Felix Lange 2025-05-28 19:01:33 +02:00 committed by GitHub
parent 0110b659c1
commit 25f6206137
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 66 additions and 8 deletions

View file

@ -41,8 +41,8 @@ jobs:
- name: Run ci.go
env:
DOCKER_HUB_USERNAME: "{{ secrets.DOCKER_HUB_USERNAME }}"
DOCKER_HUB_PASSWORD: "{{ secrets.DOCKER_HUB_PASSWORD }}"
PPA_SIGNING_KEY: "{{ secrets.PPA_SIGNING_KEY }}"
PPA_SSH_KEY: "{{ secrets.PPA_SSH_KEY }}"
run: |
echo '|1|7SiYPr9xl3uctzovOTj4gMwAC1M=|t6ReES75Bo/PxlOPJ6/GsGbTrM0= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA0aKz5UTUndYgIGG7dQBV+HaeuEZJ2xPHo2DS2iSKvUL4xNMSAY4UguNW+pX56nAQmZKIZZ8MaEvSj6zMEDiq6HFfn5JcTlM80UwlnyKe8B8p7Nk06PPQLrnmQt5fh0HmEcZx+JU9TZsfCHPnX7MNz4ELfZE6cFsclClrKim3BHUIGq//t93DllB+h4O9LHjEUsQ1Sr63irDLSutkLJD6RXchjROXkNirlcNVHH/jwLWR5RcYilNX7S5bIkK8NlWPjsn/8Ua5O7I9/YoE97PpO6i73DTGLh5H9JN/SITwCKBkgSDWUt61uPK3Y11Gty7o2lWsBjhBUm2Y38CBsoGmBw==' >> ~/.ssh/known_hosts
go run build/ci.go debsrc -upload ethereum/ethereum -sftp-user geth-ci -signer "Go Ethereum Linux Builder <geth-ci@ethereum.org>"

View file

@ -5,7 +5,7 @@ on:
branches: [ master ]
jobs:
linux:
linux-intel:
name: Linux Build
runs-on: ubuntu-latest
steps:
@ -17,13 +17,68 @@ jobs:
go-version: 1.24
cache: false
- name: display environment
- name: Run build (amd64)
env:
LINUX_SIGNING_KEY: "{{ secrets.LINUX_SIGNING_KEY }}"
run: |
env
go run build/ci.go install -arch amd64 -dlgo
go run build/ci.go archive -arch amd64 -type tar -signer LINUX_SIGNING_KEY -signify SIGNIFY_KEY -upload gethstore/builds
- name: Run build
- name: Run build (386)
env:
LINUX_SIGNING_KEY: "{{ secrets.LINUX_SIGNING_KEY }}"
run: |
go run build/ci.go install
apt-get -yq --no-install-suggests --no-install-recommends install gcc-multilib
go run build/ci.go install -arch 386 -dlgo
go run build/ci.go archive -arch 386 -type tar -signer LINUX_SIGNING_KEY -signify SIGNIFY_KEY -upload gethstore/builds
linux-arm:
name: Linux Build (arm)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.24
cache: false
- name: Set up cross toolchain
run: |
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
ln -s /usr/include/asm-generic /usr/include/asm
- name: Run build (arm64)
env:
LINUX_SIGNING_KEY: "{{ secrets.LINUX_SIGNING_KEY }}"
run: |
go run build/ci.go install -dlgo -arch arm64 -cc arm-linux-gnueabi-gcc
go run build/ci.go archive -arch arm64 -type tar -signer LINUX_SIGNING_KEY -signify SIGNIFY_KEY -upload gethstore/builds
- name: Run build (armv5)
env:
GOARM: "5"
LINUX_SIGNING_KEY: "{{ secrets.LINUX_SIGNING_KEY }}"
run: |
go run build/ci.go install -dlgo -arch arm -cc arm-linux-gnueabi-gcc
go run build/ci.go archive -arch arm -type tar -signer LINUX_SIGNING_KEY -signify SIGNIFY_KEY -upload gethstore/builds
- name: Run build (armv6)
env:
GOARM: "6"
LINUX_SIGNING_KEY: "{{ secrets.LINUX_SIGNING_KEY }}"
run: |
go run build/ci.go install -dlgo -arch arm -cc arm-linux-gnueabi-gcc
go run build/ci.go archive -arch arm -type tar -signer LINUX_SIGNING_KEY -signify SIGNIFY_KEY -upload gethstore/builds
- name: Run build (armv7)
env:
GOARM: "7"
LINUX_SIGNING_KEY: "{{ secrets.LINUX_SIGNING_KEY }}"
run: |
go run build/ci.go install -dlgo -arch arm -cc arm-linux-gnueabi-gcc
go run build/ci.go archive -arch arm -type tar -signer LINUX_SIGNING_KEY -signify SIGNIFY_KEY -upload gethstore/builds
docker:
name: Docker Image
@ -44,5 +99,8 @@ jobs:
cache: false
- name: Run docker build
env:
DOCKER_HUB_USERNAME: "{{ secrets.DOCKER_HUB_USERNAME }}"
DOCKER_HUB_PASSWORD: "{{ secrets.DOCKER_HUB_PASSWORD }}"
run: |
go run build/ci.go dockerx -platform linux/amd64,linux/arm64,linux/riscv64
go run build/ci.go dockerx -platform linux/amd64,linux/arm64,linux/riscv64 -upload