.github: add new action cleanup-space
This commit is contained in:
2 files changed
+43
-54
No files matched your search
@@ -0,0 +1,16 @@
|
|||||||
|
name: "Clean up runner disk space"
|
||||||
|
description: "Removes large, non-essential toolsets to free up disk space on the runner."
|
||||||
|
|
||||||
|
runs:
|
||||||
|
using: "composite"
|
||||||
|
steps:
|
||||||
|
- name: Free up disk space
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
echo "Removing large toolsets to free up disk space..."
|
||||||
|
# Remove dotnet to save disk space.
|
||||||
|
sudo rm -rf /usr/share/dotnet
|
||||||
|
# Remove android to save disk space.
|
||||||
|
sudo rm -rf /usr/local/lib/android
|
||||||
|
# Remove ghc to save disk space.
|
||||||
|
sudo rm -rf /opt/ghc
|
||||||
+27
-54
@@ -47,18 +47,15 @@ jobs:
|
|||||||
name: Static Checks
|
name: Static Checks
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: cleanup space
|
|
||||||
run: |
|
|
||||||
sudo rm -rf /usr/share/dotnet
|
|
||||||
sudo rm -rf /usr/local/lib/android
|
|
||||||
sudo rm -rf /opt/ghc
|
|
||||||
|
|
||||||
- name: Git checkout
|
- name: Git checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
# Needed for some checks.
|
# Needed for some checks.
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Clean up runner space
|
||||||
|
uses: ./.github/actions/cleanup-space
|
||||||
|
|
||||||
- name: Setup Go ${{ env.GO_VERSION }}
|
- name: Setup Go ${{ env.GO_VERSION }}
|
||||||
uses: ./.github/actions/setup-go
|
uses: ./.github/actions/setup-go
|
||||||
with:
|
with:
|
||||||
@@ -117,17 +114,14 @@ jobs:
|
|||||||
name: check commits
|
name: check commits
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: cleanup space
|
|
||||||
run: |
|
|
||||||
sudo rm -rf /usr/share/dotnet
|
|
||||||
sudo rm -rf /usr/local/lib/android
|
|
||||||
sudo rm -rf /opt/ghc
|
|
||||||
|
|
||||||
- name: git checkout
|
- name: git checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Clean up runner space
|
||||||
|
uses: ./.github/actions/cleanup-space
|
||||||
|
|
||||||
- name: setup go ${{ env.GO_VERSION }}
|
- name: setup go ${{ env.GO_VERSION }}
|
||||||
uses: ./.github/actions/setup-go
|
uses: ./.github/actions/setup-go
|
||||||
with:
|
with:
|
||||||
@@ -146,17 +140,14 @@ jobs:
|
|||||||
name: lint code
|
name: lint code
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: cleanup space
|
|
||||||
run: |
|
|
||||||
sudo rm -rf /usr/share/dotnet
|
|
||||||
sudo rm -rf /usr/local/lib/android
|
|
||||||
sudo rm -rf /opt/ghc
|
|
||||||
|
|
||||||
- name: git checkout
|
- name: git checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Clean up runner space
|
||||||
|
uses: ./.github/actions/cleanup-space
|
||||||
|
|
||||||
- name: setup go ${{ env.GO_VERSION }}
|
- name: setup go ${{ env.GO_VERSION }}
|
||||||
uses: ./.github/actions/setup-go
|
uses: ./.github/actions/setup-go
|
||||||
with:
|
with:
|
||||||
@@ -183,15 +174,12 @@ jobs:
|
|||||||
- name: arm
|
- name: arm
|
||||||
sys: darwin-arm64 freebsd-arm linux-armv6 linux-armv7 linux-arm64 windows-arm
|
sys: darwin-arm64 freebsd-arm linux-armv6 linux-armv7 linux-arm64 windows-arm
|
||||||
steps:
|
steps:
|
||||||
- name: cleanup space
|
|
||||||
run: |
|
|
||||||
sudo rm -rf /usr/share/dotnet
|
|
||||||
sudo rm -rf /usr/local/lib/android
|
|
||||||
sudo rm -rf /opt/ghc
|
|
||||||
|
|
||||||
- name: git checkout
|
- name: git checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Clean up runner space
|
||||||
|
uses: ./.github/actions/cleanup-space
|
||||||
|
|
||||||
- name: setup go ${{ env.GO_VERSION }}
|
- name: setup go ${{ env.GO_VERSION }}
|
||||||
uses: ./.github/actions/setup-go
|
uses: ./.github/actions/setup-go
|
||||||
with:
|
with:
|
||||||
@@ -223,17 +211,14 @@ jobs:
|
|||||||
- unit-module
|
- unit-module
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: cleanup space
|
|
||||||
run: |
|
|
||||||
sudo rm -rf /usr/share/dotnet
|
|
||||||
sudo rm -rf /usr/local/lib/android
|
|
||||||
sudo rm -rf /opt/ghc
|
|
||||||
|
|
||||||
- name: git checkout
|
- name: git checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Clean up runner space
|
||||||
|
uses: ./.github/actions/cleanup-space
|
||||||
|
|
||||||
- name: fetch and rebase on ${{ github.base_ref }}
|
- name: fetch and rebase on ${{ github.base_ref }}
|
||||||
if: github.event_name == 'pull_request'
|
if: github.event_name == 'pull_request'
|
||||||
uses: ./.github/actions/rebase
|
uses: ./.github/actions/rebase
|
||||||
@@ -295,17 +280,14 @@ jobs:
|
|||||||
- name: neutrino
|
- name: neutrino
|
||||||
args: backend=neutrino cover=1
|
args: backend=neutrino cover=1
|
||||||
steps:
|
steps:
|
||||||
- name: cleanup space
|
|
||||||
run: |
|
|
||||||
sudo rm -rf /usr/share/dotnet
|
|
||||||
sudo rm -rf /usr/local/lib/android
|
|
||||||
sudo rm -rf /opt/ghc
|
|
||||||
|
|
||||||
- name: git checkout
|
- name: git checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Clean up runner space
|
||||||
|
uses: ./.github/actions/cleanup-space
|
||||||
|
|
||||||
- name: fetch and rebase on ${{ github.base_ref }}
|
- name: fetch and rebase on ${{ github.base_ref }}
|
||||||
if: github.event_name == 'pull_request'
|
if: github.event_name == 'pull_request'
|
||||||
uses: ./.github/actions/rebase
|
uses: ./.github/actions/rebase
|
||||||
@@ -378,17 +360,14 @@ jobs:
|
|||||||
- name: bitcoind-postgres-nativesql-experiment
|
- name: bitcoind-postgres-nativesql-experiment
|
||||||
args: backend=bitcoind dbbackend=postgres nativesql=true tags=test_native_sql
|
args: backend=bitcoind dbbackend=postgres nativesql=true tags=test_native_sql
|
||||||
steps:
|
steps:
|
||||||
- name: cleanup space
|
|
||||||
run: |
|
|
||||||
sudo rm -rf /usr/share/dotnet
|
|
||||||
sudo rm -rf /usr/local/lib/android
|
|
||||||
sudo rm -rf /opt/ghc
|
|
||||||
|
|
||||||
- name: git checkout
|
- name: git checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Clean up runner space
|
||||||
|
uses: ./.github/actions/cleanup-space
|
||||||
|
|
||||||
- name: fetch and rebase on ${{ github.base_ref }}
|
- name: fetch and rebase on ${{ github.base_ref }}
|
||||||
if: github.event_name == 'pull_request'
|
if: github.event_name == 'pull_request'
|
||||||
uses: ./.github/actions/rebase
|
uses: ./.github/actions/rebase
|
||||||
@@ -531,15 +510,12 @@ jobs:
|
|||||||
- github.com/golang/protobuf v1.5.3
|
- github.com/golang/protobuf v1.5.3
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: cleanup space
|
|
||||||
run: |
|
|
||||||
sudo rm -rf /usr/share/dotnet
|
|
||||||
sudo rm -rf /usr/local/lib/android
|
|
||||||
sudo rm -rf /opt/ghc
|
|
||||||
|
|
||||||
- name: git checkout
|
- name: git checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Clean up runner space
|
||||||
|
uses: ./.github/actions/cleanup-space
|
||||||
|
|
||||||
- name: ensure dependencies at correct version
|
- name: ensure dependencies at correct version
|
||||||
run: if ! grep -q "${{ matrix.pinned_dep }}" go.mod; then echo dependency ${{ matrix.pinned_dep }} should not be altered ; exit 1 ; fi
|
run: if ! grep -q "${{ matrix.pinned_dep }}" go.mod; then echo dependency ${{ matrix.pinned_dep }} should not be altered ; exit 1 ; fi
|
||||||
|
|
||||||
@@ -551,15 +527,12 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: '!contains(github.event.pull_request.labels.*.name, ''no-changelog'')'
|
if: '!contains(github.event.pull_request.labels.*.name, ''no-changelog'')'
|
||||||
steps:
|
steps:
|
||||||
- name: cleanup space
|
|
||||||
run: |
|
|
||||||
sudo rm -rf /usr/share/dotnet
|
|
||||||
sudo rm -rf /usr/local/lib/android
|
|
||||||
sudo rm -rf /opt/ghc
|
|
||||||
|
|
||||||
- name: git checkout
|
- name: git checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Clean up runner space
|
||||||
|
uses: ./.github/actions/cleanup-space
|
||||||
|
|
||||||
- name: release notes check
|
- name: release notes check
|
||||||
run: scripts/check-release-notes.sh
|
run: scripts/check-release-notes.sh
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user