Skip to content

Commit

Permalink
ci - debug disk
Browse files Browse the repository at this point in the history
  • Loading branch information
aprxi committed Aug 11, 2024
1 parent a44dc75 commit 09e09e2
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/build_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,14 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Prepare build directories (Ubuntu only)
- name: Prepare build directories and set env vars (Ubuntu only)
if: runner.os == 'Linux'
run: |
sudo mkdir -p /mnt/cargo-build /mnt/cargo-home /mnt/rustup-home
sudo chmod 777 /mnt/cargo-build /mnt/cargo-home /mnt/rustup-home
echo "CARGO_TARGET_DIR=/mnt/cargo-build" >> $GITHUB_ENV
echo "CARGO_HOME=/mnt/cargo-home" >> $GITHUB_ENV
echo "RUSTUP_HOME=/mnt/rustup-home" >> $GITHUB_ENV
- name: Install and configure dependencies
run: |
Expand All @@ -76,8 +79,6 @@ jobs:
- name: Install target
run: rustup target add $TARGET
env:
RUSTUP_HOME: ${{ runner.os == 'Linux' && '/mnt/rustup-home' || '' }}

- name: Check disk usage
run: df -h
Expand Down Expand Up @@ -106,9 +107,6 @@ jobs:
- name: Build project
run: cargo build -p $NAME --release --target $TARGET
env:
CARGO_TARGET_DIR: ${{ runner.os == 'Linux' && '/mnt/cargo-build' || '' }}
CARGO_HOME: ${{ runner.os == 'Linux' && '/mnt/cargo-home' || '' }}

- name: Check disk usage
run: df -h
Expand Down

0 comments on commit 09e09e2

Please sign in to comment.