Skip to content

Commit 6e63248

Browse files
committed
Free up space before rM test
1 parent 7e6e461 commit 6e63248

1 file changed

Lines changed: 42 additions & 26 deletions

File tree

.github/workflows/main.yml

Lines changed: 42 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,28 @@ on:
44
branches:
55
- main
66
paths:
7-
- requirements.txt
8-
- requirements.remote.txt
9-
- '*.py'
10-
- data/**
11-
- codexctl/**
12-
- scripts/**
13-
- github-make-executable.sh
14-
- Makefile
15-
- .github/workflows/main.yml
7+
- requirements.txt
8+
- requirements.remote.txt
9+
- "*.py"
10+
- data/**
11+
- codexctl/**
12+
- scripts/**
13+
- github-make-executable.sh
14+
- Makefile
15+
- .github/workflows/main.yml
1616
push:
1717
branches:
1818
- main
1919
paths:
20-
- requirements.txt
21-
- requirements.remote.txt
22-
- '*.py'
23-
- data/**
24-
- codexctl/**
25-
- scripts/**
26-
- github-make-executable.sh
27-
- Makefile
28-
- .github/workflows/main.yml
20+
- requirements.txt
21+
- requirements.remote.txt
22+
- "*.py"
23+
- data/**
24+
- codexctl/**
25+
- scripts/**
26+
- github-make-executable.sh
27+
- Makefile
28+
- .github/workflows/main.yml
2929
workflow_dispatch:
3030

3131
defaults:
@@ -71,8 +71,8 @@ jobs:
7171
nuitka_cache: ${{ github.workspace }}/.nuitka
7272
- uses: actions/setup-python@v5
7373
with:
74-
python-version: '3.12'
75-
cache: 'pip'
74+
python-version: "3.12"
75+
cache: "pip"
7676
cache-dependency-path: |
7777
**/requirements*.txt
7878
- name: Test codexctl
@@ -87,7 +87,7 @@ jobs:
8787
nuitka_cache: ${{ github.workspace }}/.nuitka
8888
- name: Upload Compilation Report
8989
uses: actions/upload-artifact@v4
90-
if: (success() || failure()) && runner.debug == '1'
90+
if: (success() || failure()) && runner.debug == '1'
9191
with:
9292
name: ${{ matrix.os }}-compilation-report
9393
path: compilation-report.xml
@@ -164,7 +164,7 @@ jobs:
164164
./scripts/github-make-executable.sh
165165
- name: Upload Compilation Report
166166
uses: actions/upload-artifact@v4
167-
if: runner.debug == '1'
167+
if: runner.debug == '1'
168168
with:
169169
name: ${{ matrix.os }}-compilation-report
170170
path: compilation-report.xml
@@ -182,24 +182,40 @@ jobs:
182182
strategy:
183183
matrix:
184184
fw_version:
185-
- '2.15.1'
186-
- '3.3.2'
185+
- "2.15.1"
186+
- "3.3.2"
187187
# - '3.9.3'
188188
steps:
189189
- uses: actions/download-artifact@v4
190190
with:
191191
path: artifacts
192192
name: remarkable
193+
- name: Free up space
194+
run: |
195+
export DEBIAN_FRONTEND="noninteractive"
196+
sudo apt-get autoremove -y
197+
sudo apt-get autoclean -y
198+
sudo rm -rf \
199+
/usr/lib/jvm \
200+
/usr/share/dotnet \
201+
/usr/share/swift \
202+
/usr/local/.ghcup \
203+
/usr/local/julia* \
204+
/usr/local/lib/android \
205+
/usr/local/share/chromium \
206+
/opt/microsoft /opt/google \
207+
/opt/az \
208+
/usr/local/share/powershell
193209
- uses: Eeems-Org/run-in-remarkable-action@v1
194210
with:
195211
path: artifacts
196212
fw_version: ${{ matrix.fw_version }}
197213
run: |
198214
chmod +x ./codexctl
199-
./codexctl download --hardware rm2 --out /tmp toltec
215+
./codexctl download --hardware rm2 --out /tmp toltec
200216
release:
201217
name: Release
202-
needs: [remote,device,test_device]
218+
needs: [remote, device, test_device]
203219
runs-on: ubuntu-latest
204220
if: github.ref == 'refs/heads/main'
205221
permissions:

0 commit comments

Comments
 (0)