Skip to content

Commit

Permalink
Add maximize-build-space step (#286)
Browse files Browse the repository at this point in the history
* Add maximize-build-space step

* Only run build clean on ubuntu

* Cache and save space for packages in tmp

* Use dependency def paths

* 15GB on root

* Remove dotnet, more root space

* Remove Android and add more root space

* Use setup-python v4

* update other workflows as well
  • Loading branch information
pjbull authored Aug 17, 2023
1 parent 442faaf commit a21710b
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.8

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.8

Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,21 @@ jobs:
runs-on: "ubuntu-latest"

steps:
- name: Maximize build space
uses: easimon/maximize-build-space@master
with:
root-reserve-mb: 30000 # for pip packages in /tmp
remove-dotnet: true
remove-android: true

- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.8
cache: 'pip'
cache-dependency-path: pyproject.toml

- name: Install dependencies
run: |
Expand Down
20 changes: 17 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ jobs:
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.8
cache: 'pip'
cache-dependency-path: requirements-dev/lint.txt

- name: Install dependencies
run: |
Expand All @@ -45,6 +47,14 @@ jobs:
python-version: [3.8, 3.9]

steps:
- if: matrix.os == 'ubuntu-latest'
name: Maximize build space
uses: easimon/maximize-build-space@master
with:
root-reserve-mb: 30000 # for pip packages in /tmp
remove-dotnet: true
remove-android: true

- uses: actions/checkout@v2

- name: Setup FFmpeg
Expand All @@ -59,9 +69,11 @@ jobs:
uses: ilammy/msvc-dev-cmd@v1

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: pyproject.toml

- name: Install dependencies
run: |
Expand Down Expand Up @@ -107,9 +119,11 @@ jobs:
version: "4.4"

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: pyproject.toml

- name: Install dependencies
run: |
Expand Down

0 comments on commit a21710b

Please sign in to comment.