Skip to content
Open
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion .github/actions/rust/sccache/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ runs:
shell: bash
run: |
SCCACHE_DOWNLOAD_LINK=https://github.com/mozilla/sccache/releases/download
SCCACHE_VERSION=v0.2.15
SCCACHE_VERSION=v0.17.0
SCCACHE_PREFIX="sccache-$SCCACHE_VERSION-x86_64-unknown-linux-musl"
SCCACHE_TAR="${SCCACHE_PREFIX}.tar.gz"
DOWNLOAD_LINK="${SCCACHE_DOWNLOAD_LINK}/${SCCACHE_VERSION}/${SCCACHE_TAR}"
Expand All @@ -42,5 +42,6 @@ runs:
shell: bash
run: |
echo "starting sccache on ${{ inputs.os }}"
sccache --version
sccache --start-server
sccache -s
16 changes: 8 additions & 8 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,15 +152,10 @@ jobs:
awk '{print $1}' | \
xargs -I {} cargo check -p {}

# Clean debug target to avoid bloating the GitHub Actions cache.
# The previous builds cannot be re-used at all for the full --all-features --release build anyway.
- name: Clean target
# Remove debug artifacts from feature checks while preserving cached release artifacts.
- name: Clean debug target
if: matrix.os == 'ubuntu-24.04'
run: cargo clean

# Build the library, tests, and examples without running them to avoid recompilation in the run tests step
- name: Build with default features
run: cargo build --workspace --tests --examples --release
run: cargo clean --profile dev

- name: Start iota sandbox
if: matrix.os != 'windows-latest'
Expand Down Expand Up @@ -196,6 +191,11 @@ jobs:
echo "IOTA_TF_COMPONENTS_PKG_ID=$IOTA_TF_COMPONENTS_PKG_ID" >> "$GITHUB_ENV"
working-directory: audit-trail-move/scripts/

# Move testing and publication can update Move.lock, which the Rust build scripts watch.
# Build afterward so tests and examples reuse artifacts from the final Move inputs.
- name: Build with default features
run: cargo build --workspace --tests --examples --release

- name: Run tests
if: matrix.os != 'windows-latest'
run: cargo test --workspace --release -- --test-threads=1
Expand Down
Loading