Skip to content

Commit b971983

Browse files
authored
.gitea: add cron build script (ethereum#31890)
Also swaps the push build scripts and adds environment output.
1 parent 8781e93 commit b971983

File tree

2 files changed

+61
-15
lines changed

2 files changed

+61
-15
lines changed

.gitea/workflows/release-cron.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Release Builds (cron)
2+
3+
on:
4+
schedule:
5+
cron: '0 0 * * *'
6+
7+
jobs:
8+
azure-cleanup:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
13+
- name: Set up Go
14+
uses: actions/setup-go@v5
15+
with:
16+
go-version: 1.24
17+
cache: false
18+
19+
- name: Run cleanup script
20+
run: |
21+
go run build/ci.go purge -store gethstore/builds -days 14
22+
23+
ppa:
24+
name: PPA Upload (master)
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v4
28+
29+
- name: Set up Go
30+
uses: actions/setup-go@v5
31+
with:
32+
go-version: 1.24
33+
cache: false
34+
35+
- name: Install deb toolchain
36+
run: |
37+
apt-get -yq --no-install-suggests --no-install-recommends install devscripts debhelper dput fakeroot
38+
39+
- name: Run ci.go
40+
run: |
41+
echo '|1|7SiYPr9xl3uctzovOTj4gMwAC1M=|t6ReES75Bo/PxlOPJ6/GsGbTrM0= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA0aKz5UTUndYgIGG7dQBV+HaeuEZJ2xPHo2DS2iSKvUL4xNMSAY4UguNW+pX56nAQmZKIZZ8MaEvSj6zMEDiq6HFfn5JcTlM80UwlnyKe8B8p7Nk06PPQLrnmQt5fh0HmEcZx+JU9TZsfCHPnX7MNz4ELfZE6cFsclClrKim3BHUIGq//t93DllB+h4O9LHjEUsQ1Sr63irDLSutkLJD6RXchjROXkNirlcNVHH/jwLWR5RcYilNX7S5bIkK8NlWPjsn/8Ua5O7I9/YoE97PpO6i73DTGLh5H9JN/SITwCKBkgSDWUt61uPK3Y11Gty7o2lWsBjhBUm2Y38CBsoGmBw==' >> ~/.ssh/known_hosts
42+
go run build/ci.go debsrc -upload ethereum/ethereum -sftp-user geth-ci -signer "Go Ethereum Linux Builder <geth-ci@ethereum.org>"

.gitea/workflows/release.yml

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,48 @@
1-
name: Release Builds
1+
name: Release Builds (push)
22

33
on:
44
push:
55
branches: [ master ]
66

77
jobs:
8-
docker:
9-
name: Docker Image
8+
linux:
9+
name: Linux Build
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v4
1313

14-
- name: Set up QEMU
15-
uses: docker/setup-qemu-action@v3
16-
17-
- name: Set up Docker Buildx
18-
uses: docker/setup-buildx-action@v3
19-
2014
- name: Set up Go
2115
uses: actions/setup-go@v5
2216
with:
2317
go-version: 1.24
2418
cache: false
2519

26-
- name: Run docker build
20+
- name: display environment
2721
run: |
28-
go run build/ci.go dockerx -platform linux/amd64,linux/arm64,linux/riscv64
22+
env
2923
30-
linux:
31-
name: Linux Build
24+
- name: Run build
25+
run: |
26+
go run build/ci.go install
27+
28+
docker:
29+
name: Docker Image
3230
runs-on: ubuntu-latest
3331
steps:
3432
- uses: actions/checkout@v4
3533

34+
- name: Set up QEMU
35+
uses: docker/setup-qemu-action@v3
36+
37+
- name: Set up Docker Buildx
38+
uses: docker/setup-buildx-action@v3
39+
3640
- name: Set up Go
3741
uses: actions/setup-go@v5
3842
with:
3943
go-version: 1.24
4044
cache: false
4145

42-
- name: Run build
46+
- name: Run docker build
4347
run: |
44-
go run build/ci.go install
48+
go run build/ci.go dockerx -platform linux/amd64,linux/arm64,linux/riscv64

0 commit comments

Comments
 (0)