Skip to content

Instantly share code, notes, and snippets.

@Haaroon
Created July 19, 2023 13:49
Show Gist options
  • Save Haaroon/d008fa11cb4352a41398e71fd735125b to your computer and use it in GitHub Desktop.
Save Haaroon/d008fa11cb4352a41398e71fd735125b to your computer and use it in GitHub Desktop.
A Github workflow extract showing how to bypass the Github Actions Disk Space Limit on Windows to allow you to build larger projects. Here we want to build polars on rust, but the windows default machie runs out of space. so we checkout the files onto the c drive and run everything from there.
windows-rust-test:
if: ${{ !inputs.skip_tests }}
name: Windows Rust Tests
runs-on: windows-latest
steps:
- run : mkdir C:\raphtory
- name: Checkout code
uses: actions/checkout@v3
- run : Xcopy "D:\a\Raphtory\Raphtory" "C:\raphtory" /E/I/H/Y
- name: Set up cargo cache
uses: actions/cache@v3
continue-on-error: false
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- uses: actions-rs/toolchain@v1
name: Setup Rust
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt, clippy
- name: manual rust test
run: |
cd c:\raphtory && C:\Users\runneradmin\.cargo\bin\cargo.exe test --all --no-default-features --features 'raphtory/io raphtory/python'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment