mirror of
https://github.com/allenai/olmocr.git
synced 2025-10-13 17:22:13 +00:00
removed unneccesary files before building
This commit is contained in:
parent
8bfd1f144b
commit
70c40e48ab
20
.github/workflows/docker-build.yml
vendored
20
.github/workflows/docker-build.yml
vendored
@ -24,6 +24,16 @@ jobs:
|
|||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Free up disk space
|
||||||
|
run: |
|
||||||
|
sudo rm -rf /usr/share/dotnet
|
||||||
|
sudo rm -rf /usr/local/lib/android
|
||||||
|
sudo rm -rf /opt/ghc
|
||||||
|
sudo rm -rf /opt/hostedtoolcache/CodeQL
|
||||||
|
sudo docker system prune -af
|
||||||
|
sudo apt-get autoremove -y
|
||||||
|
sudo apt-get autoclean
|
||||||
|
df -h
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
@ -55,5 +65,11 @@ jobs:
|
|||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
cache-from: type=gha
|
outputs: type=registry
|
||||||
cache-to: type=gha,mode=max
|
no-cache: true
|
||||||
|
|
||||||
|
- name: Clean up after build
|
||||||
|
if: always()
|
||||||
|
run: |
|
||||||
|
docker system prune -af --volumes
|
||||||
|
df -h
|
||||||
|
Loading…
x
Reference in New Issue
Block a user