Skip to content

Commit 9a64a24

Browse files
GiteaBottechknowlogicksilverwind
authored
use hosted runners for nightly actions (#27485) (#27488)
Backport #27485 by @techknowlogick 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: techknowlogick <techknowlogick@gitea.com> Co-authored-by: silverwind <me@silverwind.io>
1 parent d8513fc commit 9a64a24

File tree

3 files changed

+40
-3
lines changed

3 files changed

+40
-3
lines changed

.github/actionlint.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ self-hosted-runner:
22
labels:
33
- actuated-4cpu-8gb
44
- actuated-4cpu-16gb
5+
- nscloud

.github/workflows/disk-clean.yml

+36
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

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ concurrency:
1010

1111
jobs:
1212
nightly-binary:
13-
runs-on: actuated-4cpu-16gb
13+
runs-on: nscloud
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
@@ -56,7 +56,7 @@ jobs:
5656
run: |
5757
aws s3 sync dist/release s3://${{ secrets.AWS_S3_BUCKET }}/gitea/${{ steps.clean_name.outputs.branch }} --no-progress
5858
nightly-docker-rootful:
59-
runs-on: actuated-4cpu-16gb
59+
runs-on: ubuntu-latest
6060
steps:
6161
- uses: actions/checkout@v4
6262
# fetch all commits instead of only the last as some branches are long lived and could have many between versions
@@ -93,7 +93,7 @@ jobs:
9393
push: true
9494
tags: gitea/gitea:${{ steps.clean_name.outputs.branch }}
9595
nightly-docker-rootless:
96-
runs-on: actuated-4cpu-16gb
96+
runs-on: ubuntu-latest
9797
steps:
9898
- uses: actions/checkout@v4
9999
# fetch all commits instead of only the last as some branches are long lived and could have many between versions

0 commit comments

Comments
 (0)