Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(cron,staging): add maximize-build-space #88

Closed
13 changes: 12 additions & 1 deletion .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,27 @@ jobs:
name: Build Website
runs-on: ubuntu-22.04
steps:
- name: Maximize build space
uses: easimon/maximize-build-space@v10
with:
root-reserve-mb: 13000 # Hugo is required a lot of free space
temp-reserve-mb: 13000
remove-android: 'true'
remove-docker-images: 'true'
remove-dotnet: 'true'
remove-haskell: 'true'

- name: Set up Go 1.22
uses: actions/setup-go@v4
with:
go-version: '1.22'
cache: false
id: go

- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: "0.126.1"
hugo-version: "0.119.0"

- name: Check out code into the Go module directory
uses: actions/checkout@v3
Expand Down
13 changes: 12 additions & 1 deletion .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,27 @@ jobs:
name: Build Website - Staging
runs-on: ubuntu-22.04
steps:
- name: Maximize build space
uses: easimon/maximize-build-space@v10
with:
root-reserve-mb: 13000 # Hugo is required a lot of free space
temp-reserve-mb: 13000
remove-android: 'true'
remove-docker-images: 'true'
remove-dotnet: 'true'
remove-haskell: 'true'

- name: Set up Go 1.22
uses: actions/setup-go@v4
with:
go-version: '1.22'
cache: false
id: go

- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: "0.126.1"
hugo-version: "0.119.0"

- name: Check out code into the Go module directory
uses: actions/checkout@v3
Expand Down
Loading