Skip to content

Commit

Permalink
use preconfigured free-disk-space action in ci wf
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisInSky committed Nov 7, 2024
1 parent dfcd9db commit 39c5508
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 17 deletions.
22 changes: 22 additions & 0 deletions .github/actions/free-disk-space/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Free Disk Space
description: Preconfigured action to free up disk space on GitHub Actions runners
# Inputs might be added in the future, but for now, the defaults should be sufficient

runs:
using: composite

steps:
- name: Free Disk Space
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: false
# all of these default to true, but feel free to set to
# "false" if necessary for your workflow
android: true
dotnet: false
haskell: true
large-packages: false
docker-images: true
swap-storage: true
24 changes: 7 additions & 17 deletions .github/workflows/rs-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,7 @@ jobs:

steps:
- name: Free Disk Space
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: false

# all of these default to true, but feel free to set to
# "false" if necessary for your workflow
android: true
dotnet: false
haskell: true
large-packages: false
docker-images: true
swap-storage: true
uses: ./.github/actions/free-disk-space

- name: Checkout Code
uses: actions/checkout@v4
Expand All @@ -59,13 +46,16 @@ jobs:
uses: ./.github/actions/install-wasm-utils

- name: Check Code Formatting
run: __GEAR_WASM_BUILDER_NO_FEATURES_TRACKING=1 cargo fmt --all --check
run: |
__GEAR_WASM_BUILDER_NO_FEATURES_TRACKING=1 cargo fmt --all --check
- name: Check Code With Clippy
run: __GEAR_WASM_BUILDER_NO_FEATURES_TRACKING=1 cargo clippy --workspace --all-targets --locked -- -D warnings
run: |
__GEAR_WASM_BUILDER_NO_FEATURES_TRACKING=1 cargo clippy --workspace --all-targets --locked -- -D warnings
- name: Check IDL Parser For WASM With Clippy
run: __GEAR_WASM_BUILDER_NO_FEATURES_TRACKING=1 cargo clippy -p sails-idl-parser --all-targets --locked --target=wasm32-unknown-unknown -- -D warnings
run: |
__GEAR_WASM_BUILDER_NO_FEATURES_TRACKING=1 cargo clippy -p sails-idl-parser --all-targets --locked --target=wasm32-unknown-unknown -- -D warnings
test:
name: Run Workflow Tests
Expand Down

0 comments on commit 39c5508

Please sign in to comment.