Skip to content

Commit 3079a4a

Browse files
techknowlogicksilverwind
authored andcommitted
use hosted runners for nightly actions (go-gitea#27485)
I'm temporarily unable to properly evaluate actuated runners, and so I'm switching back to hosted runners until I am able to focus on that again. --------- Co-authored-by: silverwind <[email protected]>
1 parent 5b670d8 commit 3079a4a

File tree

2 files changed

+42
-3
lines changed

2 files changed

+42
-3
lines changed

.github/workflows/disk-clean.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: disk-clean
2+
3+
on:
4+
workflow_call:
5+
6+
jobs:
7+
triage:
8+
runs-on: ubuntu-latest
9+
steps:
10+
# FIXME: https://github.com/jlumbroso/free-disk-space/issues/17
11+
- name: same as 'large-packages' but without 'google-cloud-sdk'
12+
shell: bash
13+
run: |
14+
sudo apt-get remove -y '^dotnet-.*'
15+
sudo apt-get remove -y '^llvm-.*'
16+
sudo apt-get remove -y 'php.*'
17+
sudo apt-get remove -y '^mongodb-.*'
18+
sudo apt-get remove -y '^mysql-.*'
19+
sudo apt-get remove -y azure-cli google-chrome-stable firefox powershell mono-devel libgl1-mesa-dri
20+
sudo apt-get autoremove -y
21+
sudo apt-get clean
22+
- name: Free Disk Space (Ubuntu)
23+
uses: jlumbroso/free-disk-space@main
24+
with:
25+
# this might remove tools that are actually needed,
26+
# if set to "true" but frees about 6 GB
27+
tool-cache: false
28+
29+
# all of these default to true, but feel free to set to
30+
# "false" if necessary for your workflow
31+
android: true
32+
dotnet: true
33+
haskell: true
34+
large-packages: false
35+
docker-images: false
36+
swap-storage: true

.github/workflows/release-nightly.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@ concurrency:
1010

1111
jobs:
1212
nightly-binary:
13-
runs-on: actuated-4cpu-16gb
13+
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v4
1616
# fetch all commits instead of only the last as some branches are long lived and could have many between versions
1717
# fetch all tags to ensure that "git describe" reports expected Gitea version, eg. v1.21.0-dev-1-g1234567
1818
- run: git fetch --unshallow --quiet --tags --force
19+
- uses: ./.github/workflows/disk-clean.yml
1920
- uses: actions/setup-go@v4
2021
with:
2122
go-version: "~1.21"
@@ -56,12 +57,13 @@ jobs:
5657
SOURCE_DIR: dist/release
5758
DEST_DIR: gitea/${{ steps.clean_name.outputs.branch }}
5859
nightly-docker-rootful:
59-
runs-on: actuated-4cpu-16gb
60+
runs-on: ubuntu-latest
6061
steps:
6162
- uses: actions/checkout@v4
6263
# fetch all commits instead of only the last as some branches are long lived and could have many between versions
6364
# fetch all tags to ensure that "git describe" reports expected Gitea version, eg. v1.21.0-dev-1-g1234567
6465
- run: git fetch --unshallow --quiet --tags --force
66+
- uses: ./.github/workflows/disk-clean.yml
6567
- uses: actions/setup-go@v4
6668
with:
6769
go-version: "~1.21"
@@ -93,12 +95,13 @@ jobs:
9395
push: true
9496
tags: gitea/gitea:${{ steps.clean_name.outputs.branch }}
9597
nightly-docker-rootless:
96-
runs-on: actuated-4cpu-16gb
98+
runs-on: ubuntu-latest
9799
steps:
98100
- uses: actions/checkout@v4
99101
# fetch all commits instead of only the last as some branches are long lived and could have many between versions
100102
# fetch all tags to ensure that "git describe" reports expected Gitea version, eg. v1.21.0-dev-1-g1234567
101103
- run: git fetch --unshallow --quiet --tags --force
104+
- uses: ./.github/workflows/disk-clean.yml
102105
- uses: actions/setup-go@v4
103106
with:
104107
go-version: "~1.21"

0 commit comments

Comments
 (0)