summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authortechknowlogick <techknowlogick@gitea.com>2023-10-06 15:13:47 -0400
committerGitHub <noreply@github.com>2023-10-06 15:13:47 -0400
commit1683f1587cf8b4f67c3bac2e5f55c69bdbe90167 (patch)
treed182453a8f3b06a88f3ba80224b026af0ae1b548 /.github
parent5a7ab86b985ed09782f06047901ca8c1ca3cdea9 (diff)
downloadgitea-1683f1587cf8b4f67c3bac2e5f55c69bdbe90167.tar.gz
gitea-1683f1587cf8b4f67c3bac2e5f55c69bdbe90167.zip
use hosted runners for nightly actions (#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 <me@silverwind.io>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/disk-clean.yml36
-rw-r--r--.github/workflows/release-nightly.yml9
2 files changed, 42 insertions, 3 deletions
diff --git a/.github/workflows/disk-clean.yml b/.github/workflows/disk-clean.yml
new file mode 100644
index 0000000000..24a9d9216f
--- /dev/null
+++ b/.github/workflows/disk-clean.yml
@@ -0,0 +1,36 @@
+name: disk-clean
+
+on:
+ workflow_call:
+
+jobs:
+ triage:
+ runs-on: ubuntu-latest
+ steps:
+ # FIXME: https://github.com/jlumbroso/free-disk-space/issues/17
+ - name: same as 'large-packages' but without 'google-cloud-sdk'
+ shell: bash
+ run: |
+ sudo apt-get remove -y '^dotnet-.*'
+ sudo apt-get remove -y '^llvm-.*'
+ sudo apt-get remove -y 'php.*'
+ sudo apt-get remove -y '^mongodb-.*'
+ sudo apt-get remove -y '^mysql-.*'
+ sudo apt-get remove -y azure-cli google-chrome-stable firefox powershell mono-devel libgl1-mesa-dri
+ sudo apt-get autoremove -y
+ sudo apt-get clean
+ - name: Free Disk Space (Ubuntu)
+ uses: jlumbroso/free-disk-space@main
+ with:
+ # this might remove tools that are actually needed,
+ # if set to "true" but frees about 6 GB
+ tool-cache: false
+
+ # all of these default to true, but feel free to set to
+ # "false" if necessary for your workflow
+ android: true
+ dotnet: true
+ haskell: true
+ large-packages: false
+ docker-images: false
+ swap-storage: true
diff --git a/.github/workflows/release-nightly.yml b/.github/workflows/release-nightly.yml
index ef3db2db73..321b9626ce 100644
--- a/.github/workflows/release-nightly.yml
+++ b/.github/workflows/release-nightly.yml
@@ -10,12 +10,13 @@ concurrency:
jobs:
nightly-binary:
- runs-on: actuated-4cpu-16gb
+ runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# fetch all commits instead of only the last as some branches are long lived and could have many between versions
# fetch all tags to ensure that "git describe" reports expected Gitea version, eg. v1.21.0-dev-1-g1234567
- run: git fetch --unshallow --quiet --tags --force
+ - uses: ./.github/workflows/disk-clean.yml
- uses: actions/setup-go@v4
with:
go-version: "~1.21"
@@ -56,12 +57,13 @@ jobs:
SOURCE_DIR: dist/release
DEST_DIR: gitea/${{ steps.clean_name.outputs.branch }}
nightly-docker-rootful:
- runs-on: actuated-4cpu-16gb
+ runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# fetch all commits instead of only the last as some branches are long lived and could have many between versions
# fetch all tags to ensure that "git describe" reports expected Gitea version, eg. v1.21.0-dev-1-g1234567
- run: git fetch --unshallow --quiet --tags --force
+ - uses: ./.github/workflows/disk-clean.yml
- uses: actions/setup-go@v4
with:
go-version: "~1.21"
@@ -93,12 +95,13 @@ jobs:
push: true
tags: gitea/gitea:${{ steps.clean_name.outputs.branch }}
nightly-docker-rootless:
- runs-on: actuated-4cpu-16gb
+ runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# fetch all commits instead of only the last as some branches are long lived and could have many between versions
# fetch all tags to ensure that "git describe" reports expected Gitea version, eg. v1.21.0-dev-1-g1234567
- run: git fetch --unshallow --quiet --tags --force
+ - uses: ./.github/workflows/disk-clean.yml
- uses: actions/setup-go@v4
with:
go-version: "~1.21"