Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:

env:
CARGO_TERM_COLOR: always
CARGO_HOME: build/cargo-home
CARGO_TARGET_DIR: ${{ github.workspace }}/build/target

jobs:
Expand All @@ -19,6 +18,12 @@ jobs:
steps:
- uses: actions/checkout@v2

# Set CARGO_HOME outside the workspace so that Swatinem/rust-cache (below)
# does not consider it workspace local and thus not a dependency to cache.
# runner.temp is not valid in 'env:' above, so have to set it here.
- name: Set CARGO_HOME
run: echo "CARGO_HOME=${{ runner.temp }}/cargo-home" >> "$GITHUB_ENV"

- run: rustup show active-toolchain
- run: rustup component add rustfmt clippy

Expand Down Expand Up @@ -72,7 +77,7 @@ jobs:
echo ~/.local/bin >> $GITHUB_PATH

- name: Setup meson project
run: meson setup -Dprofile=development -Dcargo_locked=true build
run: meson setup -Dprofile=development -Dcargo_locked=true -Dcargo_home="$CARGO_HOME" build

- name: Build
run: ninja -C build
Expand Down