From 3079a4a13977bf5746bf2077024708996438d309 Mon Sep 17 00:00:00 2001 From: techknowlogick Date: Fri, 6 Oct 2023 15:13:47 -0400 Subject: [PATCH 1/3] 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 --- .github/workflows/disk-clean.yml | 36 +++++++++++++++++++++++++++ .github/workflows/release-nightly.yml | 9 ++++--- 2 files changed, 42 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/disk-clean.yml diff --git a/.github/workflows/disk-clean.yml b/.github/workflows/disk-clean.yml new file mode 100644 index 0000000000000..24a9d9216fb60 --- /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 ef3db2db73e03..321b9626cef97 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" From 83fd12770924157f56021bd862f340324d9e7508 Mon Sep 17 00:00:00 2001 From: techknowlogick Date: Mon, 9 Oct 2023 14:05:47 -0400 Subject: [PATCH 2/3] Update release-nightly.yml --- .github/workflows/release-nightly.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/release-nightly.yml b/.github/workflows/release-nightly.yml index 321b9626cef97..fda6f3c71fc1e 100644 --- a/.github/workflows/release-nightly.yml +++ b/.github/workflows/release-nightly.yml @@ -10,13 +10,12 @@ concurrency: jobs: nightly-binary: - runs-on: ubuntu-latest + runs-on: nscloud 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" @@ -63,7 +62,6 @@ jobs: # 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" @@ -101,7 +99,6 @@ jobs: # 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" From 8e4912fbee9a25b37f85d8974f4da66658394932 Mon Sep 17 00:00:00 2001 From: techknowlogick Date: Mon, 9 Oct 2023 14:10:10 -0400 Subject: [PATCH 3/3] Update actionlint.yaml --- .github/actionlint.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/actionlint.yaml b/.github/actionlint.yaml index 24c80bc60a7de..023fb05a2969a 100644 --- a/.github/actionlint.yaml +++ b/.github/actionlint.yaml @@ -2,3 +2,4 @@ self-hosted-runner: labels: - actuated-4cpu-8gb - actuated-4cpu-16gb + - nscloud