From 77575be5244fb76ea05c616c19a7c6129b35abe7 Mon Sep 17 00:00:00 2001 From: dev Date: Tue, 28 Oct 2025 17:55:15 +0200 Subject: [PATCH 1/6] mmmm --- .github/workflows/ci.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 0ae13f0e..493be483 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -7,6 +7,7 @@ on: tags: - "v*" pull_request: + workflow_dispatch: # needed to be in 'main', for any branch to manually 'Run Workflow' in GitHub UI. jobs: build: From 8fc04cbf82d7168eb643c60a0b720bdada05603a Mon Sep 17 00:00:00 2001 From: dev Date: Wed, 29 Oct 2025 11:35:01 +0200 Subject: [PATCH 2/6] test to see CI cache contents --- .github/workflows/ci.yaml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 7e6fa060..65324db9 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -14,13 +14,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Free disk space - run: | - .ci/free_disk_space.sh - - name: Add dependencies - run: | - sudo apt-get update - sudo apt-get install --no-install-recommends libudev-dev - name: Set up cargo cache uses: actions/cache@v3 continue-on-error: true @@ -34,12 +27,22 @@ jobs: key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} restore-keys: ${{ runner.os }}-cargo- + - name: List cargo cache contents + run: | + du -h ~/.cargo/bin/ + du -h ~/.cargo/registry/index/ + du -h ~/.cargo/registry/cache/ + du -h ~/.cargo/git/db/ + du -h target_ci/ + + - run: "false" # STOP - name: CI run: | ./ci.sh # Check binary-size, stolen from https://github.com/tweedegolf/sequential-storage/blob/master/.github/workflows/ci.yaml binary-size: runs-on: ubuntu-latest + if: false permissions: actions: read pull-requests: write From 93bffa75d80e19d56e79cd2fd8818de0583afebb Mon Sep 17 00:00:00 2001 From: dev Date: Wed, 29 Oct 2025 11:50:28 +0200 Subject: [PATCH 3/6] re-trigger the CI --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 65324db9..025b2990 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -35,7 +35,7 @@ jobs: du -h ~/.cargo/git/db/ du -h target_ci/ - - run: "false" # STOP + - run: "false" - name: CI run: | ./ci.sh From c409f763678d471f047f1cca42d3252ffc913173 Mon Sep 17 00:00:00 2001 From: dev Date: Wed, 29 Oct 2025 12:00:38 +0200 Subject: [PATCH 4/6] try with latest actions --- .github/workflows/ci.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 025b2990..c4f2955f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -13,9 +13,9 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - name: Set up cargo cache - uses: actions/cache@v3 + uses: actions/cache@v4 continue-on-error: true with: path: | From bac4a2826cd5ba3a76e90b31d9c9ddf3e4737c0d Mon Sep 17 00:00:00 2001 From: dev Date: Wed, 29 Oct 2025 13:44:03 +0200 Subject: [PATCH 5/6] need to clear space before cache step (4.9GB) --- .github/workflows/ci.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c4f2955f..17c5075c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -14,6 +14,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v5 + - name: Clear some space # without this, even setting up the cache doesn't work!!! + run: | + sudo rm -rf /usr/share/dotnet/ - name: Set up cargo cache uses: actions/cache@v4 continue-on-error: true From 3bb8fd83b00614c7b751da51d3d9dd8ad61b392a Mon Sep 17 00:00:00 2001 From: dev Date: Wed, 29 Oct 2025 13:59:36 +0200 Subject: [PATCH 6/6] trying to avoid 'debug' artefacts --- .github/workflows/ci.yaml | 10 ++++++++-- ci.sh | 6 +++--- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 17c5075c..f4eb301e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -36,12 +36,18 @@ jobs: du -h ~/.cargo/registry/index/ du -h ~/.cargo/registry/cache/ du -h ~/.cargo/git/db/ - du -h target_ci/ + du -h target_ci/ | grep -v \.fingerprint + # + # 18G target_ci/ + - name: Remove 'target_ci/debug' artefacts (eventually from cache) + run: | + rm -rf target_ci/debug - - run: "false" - name: CI run: | ./ci.sh + test ! -d target_ci/debug || (echo -e >&2 "Seems 'target_ci/debug' got created:\n"; du -h -d 1 target_ci/debug) + # Check binary-size, stolen from https://github.com/tweedegolf/sequential-storage/blob/master/.github/workflows/ci.yaml binary-size: runs-on: ubuntu-latest diff --git a/ci.sh b/ci.sh index e4830f01..36a10b28 100755 --- a/ci.sh +++ b/ci.sh @@ -46,6 +46,6 @@ cargo batch \ cargo fmt --check --manifest-path ./host/Cargo.toml cargo clippy --manifest-path ./host/Cargo.toml --features gatt,peripheral,central -cargo test --manifest-path ./host/Cargo.toml --lib -- --nocapture -cargo test --manifest-path ./host/Cargo.toml --no-run -- --nocapture -cargo test --manifest-path ./examples/tests/Cargo.toml --no-run -- --nocapture +cargo test --release --locked --manifest-path ./host/Cargo.toml --lib -- --nocapture +cargo test --release --locked --manifest-path ./host/Cargo.toml --no-run -- --nocapture +cargo test --release --locked --manifest-path ./examples/tests/Cargo.toml --no-run -- --nocapture