diff --git a/.github/actions/free-disk-space/action.yml b/.github/actions/free-disk-space/action.yml new file mode 100644 index 00000000..cb6f145a --- /dev/null +++ b/.github/actions/free-disk-space/action.yml @@ -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 diff --git a/.github/workflows/rs-ci.yml b/.github/workflows/rs-ci.yml index cf0796c4..bbc6f3b4 100644 --- a/.github/workflows/rs-ci.yml +++ b/.github/workflows/rs-ci.yml @@ -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 @@ -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