Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Commit f275a60

Browse files
committed
Add purge action
1 parent e3de951 commit f275a60

File tree

2 files changed

+34
-88
lines changed

2 files changed

+34
-88
lines changed

.github/actions/purge/action.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Purge
2+
3+
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
4+
# WARNING: THIS IS NOT TO BE USED LOCALLY, BUT ONLY IN GITHUB ACTIONS TO CLEAR
5+
# DISK SPACE ON UBUNTU RUNNER.
6+
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
8+
runs:
9+
using: "composite"
10+
steps:
11+
- name: Purge runner
12+
shell: bash
13+
run: |
14+
set -e
15+
16+
sudo rm -rf /usr/share/dotnet
17+
sudo rm -rf /usr/share/swift
18+
sudo rm -rf /usr/share/mysql
19+
sudo rm -rf /usr/share/az_*
20+
sudo rm -rf /usr/share/postgresql-common
21+
22+
sudo rm -rf /opt/ghc
23+
sudo rm -rf /opt/az
24+
sudo rm -rf /opt/pipx
25+
sudo rm -rf /opt/microsoft
26+
sudo rm -rf /opt/google
27+
sudo rm -rf /opt/hostedtoolcache
28+
29+
sudo rm -rf /usr/local/lib/android
30+
sudo rm -rf /usr/local/lib/heroku
31+
sudo rm -rf /imagegeneration

.github/workflows/main.yml

Lines changed: 3 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ jobs:
9999
- name: Git Checkout
100100
uses: actions/checkout@v4
101101

102+
- name: Purge environment
103+
uses: ./.github/actions/purge
104+
102105
- name: Setup Environment
103106
uses: ./.github/actions/setup
104107
with:
@@ -108,91 +111,3 @@ jobs:
108111

109112
- name: Test Programs
110113
run: pnpm programs:test
111-
112-
# generate_idls:
113-
# name: Check IDL Generation
114-
# runs-on: ubuntu-latest
115-
# needs: format_and_lint_programs
116-
# steps:
117-
# - name: Git Checkout
118-
# uses: actions/checkout@v4
119-
120-
# - name: Setup Environment
121-
# uses: ./.github/actions/setup
122-
# with:
123-
# cargo-cache-key: cargo-programs
124-
# cargo-cache-local-key: cargo-local
125-
126-
# - name: Generate IDLs
127-
# run: pnpm generate:idls
128-
129-
# - name: Check Working Directory
130-
# run: |
131-
# git status --porcelain
132-
# test -z "$(git status --porcelain)"
133-
134-
# generate_clients:
135-
# name: Check Client Generation
136-
# runs-on: ubuntu-latest
137-
# needs: format_and_lint_programs
138-
# steps:
139-
# - name: Git Checkout
140-
# uses: actions/checkout@v4
141-
142-
# - name: Setup Environment
143-
# uses: ./.github/actions/setup
144-
# with:
145-
# rustfmt: true
146-
147-
# - name: Generate Clients
148-
# run: pnpm generate:clients
149-
150-
# - name: Check Working Directory
151-
# run: |
152-
# git status --porcelain
153-
# test -z "$(git status --porcelain)"
154-
155-
# test_client_js:
156-
# name: Test Client JS
157-
# runs-on: ubuntu-latest
158-
# needs: build_programs
159-
# steps:
160-
# - name: Git Checkout
161-
# uses: actions/checkout@v4
162-
163-
# - name: Setup Environment
164-
# uses: ./.github/actions/setup
165-
# with:
166-
# solana: true
167-
168-
# - name: Restore Program Builds
169-
# uses: actions/cache/restore@v4
170-
# with:
171-
# path: ./**/*.so
172-
# key: ${{ runner.os }}-builds-${{ github.sha }}
173-
174-
# - name: Test Client JS
175-
# run: pnpm clients:js:test
176-
177-
# test_client_rust:
178-
# name: Test Client Rust
179-
# runs-on: ubuntu-latest
180-
# needs: build_programs
181-
# steps:
182-
# - name: Git Checkout
183-
# uses: actions/checkout@v4
184-
185-
# - name: Setup Environment
186-
# uses: ./.github/actions/setup
187-
# with:
188-
# cargo-cache-key: cargo-rust-client
189-
# solana: true
190-
191-
# - name: Restore Program Builds
192-
# uses: actions/cache/restore@v4
193-
# with:
194-
# path: ./**/*.so
195-
# key: ${{ runner.os }}-builds-${{ github.sha }}
196-
197-
# - name: Test Client Rust
198-
# run: pnpm clients:rust:test

0 commit comments

Comments
 (0)