From 16b8161120b0b1972b6bba573228459240f15a93 Mon Sep 17 00:00:00 2001 From: Dylan Yurgionas Date: Wed, 7 Jan 2026 13:55:00 -0600 Subject: [PATCH 01/10] test: create test-compile.yml Signed-off-by: Dylan Yurgionas --- .github/workflows/test-compile.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/workflows/test-compile.yml diff --git a/.github/workflows/test-compile.yml b/.github/workflows/test-compile.yml new file mode 100644 index 0000000..ecb39d7 --- /dev/null +++ b/.github/workflows/test-compile.yml @@ -0,0 +1,13 @@ +name: 'test-compile' + +on: + pull_request: + +jobs: + compile: + runs-on: 'ubuntu-latest' + steps: + - name: 'test compile rust' + shell: 'bash' + run: | + sudo apt install cargo && cargo install probe-rs-tools From db9758193f37e59decf1237abe7fb11a666893e2 Mon Sep 17 00:00:00 2001 From: Dylan Yurgionas Date: Wed, 7 Jan 2026 14:03:24 -0600 Subject: [PATCH 02/10] Update test-compile.yml Signed-off-by: Dylan Yurgionas --- .github/workflows/test-compile.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-compile.yml b/.github/workflows/test-compile.yml index ecb39d7..a812bce 100644 --- a/.github/workflows/test-compile.yml +++ b/.github/workflows/test-compile.yml @@ -10,4 +10,5 @@ jobs: - name: 'test compile rust' shell: 'bash' run: | - sudo apt install cargo && cargo install probe-rs-tools + sudo apt install cargo cc libudev openssl linux-tools-common gcc-multilib libssl-dev:i386 \ + && cargo install probe-rs-tools From aed03441963d10259f6994a786e7f0e65417ef68 Mon Sep 17 00:00:00 2001 From: Dylan Yurgionas Date: Wed, 7 Jan 2026 14:05:15 -0600 Subject: [PATCH 03/10] Update test-compile.yml Signed-off-by: Dylan Yurgionas --- .github/workflows/test-compile.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-compile.yml b/.github/workflows/test-compile.yml index a812bce..4845fda 100644 --- a/.github/workflows/test-compile.yml +++ b/.github/workflows/test-compile.yml @@ -10,5 +10,6 @@ jobs: - name: 'test compile rust' shell: 'bash' run: | - sudo apt install cargo cc libudev openssl linux-tools-common gcc-multilib libssl-dev:i386 \ + sudo dpkg --add-architecture i386 + sudo apt install cargo build-essential libudev-dev openssl libssl-dev linux-tools-common gcc-multilib libssl-dev:i386 \ && cargo install probe-rs-tools From e1dd2a5c34bf8a848b5abe0f1890a71f2a96ce3e Mon Sep 17 00:00:00 2001 From: Dylan Yurgionas Date: Wed, 7 Jan 2026 14:05:58 -0600 Subject: [PATCH 04/10] Update test-compile.yml Signed-off-by: Dylan Yurgionas --- .github/workflows/test-compile.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test-compile.yml b/.github/workflows/test-compile.yml index 4845fda..d79fc4f 100644 --- a/.github/workflows/test-compile.yml +++ b/.github/workflows/test-compile.yml @@ -11,5 +11,6 @@ jobs: shell: 'bash' run: | sudo dpkg --add-architecture i386 + sudo apt-get update sudo apt install cargo build-essential libudev-dev openssl libssl-dev linux-tools-common gcc-multilib libssl-dev:i386 \ && cargo install probe-rs-tools From b0ebba9016fced2ad482c949cc7a8245e3f26af0 Mon Sep 17 00:00:00 2001 From: Dylan Yurgionas Date: Thu, 8 Jan 2026 11:47:13 -0600 Subject: [PATCH 05/10] Update test-compile.yml Signed-off-by: Dylan Yurgionas --- .github/workflows/test-compile.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-compile.yml b/.github/workflows/test-compile.yml index d79fc4f..c500542 100644 --- a/.github/workflows/test-compile.yml +++ b/.github/workflows/test-compile.yml @@ -10,7 +10,12 @@ jobs: - name: 'test compile rust' shell: 'bash' run: | + set -eux sudo dpkg --add-architecture i386 sudo apt-get update sudo apt install cargo build-essential libudev-dev openssl libssl-dev linux-tools-common gcc-multilib libssl-dev:i386 \ - && cargo install probe-rs-tools + && cargo install probe-rs-tools --timings | tee output.txt + timings_file="$(cat output.txt | grep 'Timing report saved to ' | awk '{print $NF}')" + cat "${timings_file}" + + From ac9f05596f1aaae39b972fd906226eaff6ed8de4 Mon Sep 17 00:00:00 2001 From: Dylan Yurgionas Date: Thu, 8 Jan 2026 11:54:49 -0600 Subject: [PATCH 06/10] Update test-compile.yml Signed-off-by: Dylan Yurgionas --- .github/workflows/test-compile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-compile.yml b/.github/workflows/test-compile.yml index c500542..6064cf1 100644 --- a/.github/workflows/test-compile.yml +++ b/.github/workflows/test-compile.yml @@ -14,7 +14,7 @@ jobs: sudo dpkg --add-architecture i386 sudo apt-get update sudo apt install cargo build-essential libudev-dev openssl libssl-dev linux-tools-common gcc-multilib libssl-dev:i386 \ - && cargo install probe-rs-tools --timings | tee output.txt + && cargo install probe-rs-tools --timings 2>&1 | tee output.txt timings_file="$(cat output.txt | grep 'Timing report saved to ' | awk '{print $NF}')" cat "${timings_file}" From c4f4d6c371e7785e78fadbb1554806b4ba1bd3f2 Mon Sep 17 00:00:00 2001 From: Dylan Yurgionas Date: Thu, 8 Jan 2026 12:02:05 -0600 Subject: [PATCH 07/10] Update test-compile.yml Signed-off-by: Dylan Yurgionas --- .github/workflows/test-compile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-compile.yml b/.github/workflows/test-compile.yml index 6064cf1..56afbcd 100644 --- a/.github/workflows/test-compile.yml +++ b/.github/workflows/test-compile.yml @@ -16,6 +16,6 @@ jobs: sudo apt install cargo build-essential libudev-dev openssl libssl-dev linux-tools-common gcc-multilib libssl-dev:i386 \ && cargo install probe-rs-tools --timings 2>&1 | tee output.txt timings_file="$(cat output.txt | grep 'Timing report saved to ' | awk '{print $NF}')" - cat "${timings_file}" + sudo cat "${timings_file}" From 9d4ec47165f474ee6ec34d42c497a4ea87dfc772 Mon Sep 17 00:00:00 2001 From: Dylan Yurgionas Date: Thu, 8 Jan 2026 12:08:34 -0600 Subject: [PATCH 08/10] Update test-compile.yml Signed-off-by: Dylan Yurgionas --- .github/workflows/test-compile.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-compile.yml b/.github/workflows/test-compile.yml index 56afbcd..e95219e 100644 --- a/.github/workflows/test-compile.yml +++ b/.github/workflows/test-compile.yml @@ -14,8 +14,8 @@ jobs: sudo dpkg --add-architecture i386 sudo apt-get update sudo apt install cargo build-essential libudev-dev openssl libssl-dev linux-tools-common gcc-multilib libssl-dev:i386 \ - && cargo install probe-rs-tools --timings 2>&1 | tee output.txt - timings_file="$(cat output.txt | grep 'Timing report saved to ' | awk '{print $NF}')" + && sudo cargo install probe-rs-tools --timings 2>&1 | tee output.txt + timings_file="$(sudo cat output.txt | grep 'Timing report saved to ' | awk '{print $NF}')" sudo cat "${timings_file}" From db5dbf1b8a953c0b37235967fce5a4cb7c24d24a Mon Sep 17 00:00:00 2001 From: Dylan Yurgionas Date: Thu, 8 Jan 2026 12:12:06 -0600 Subject: [PATCH 09/10] Update test-compile.yml Signed-off-by: Dylan Yurgionas --- .github/workflows/test-compile.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-compile.yml b/.github/workflows/test-compile.yml index e95219e..3509e1f 100644 --- a/.github/workflows/test-compile.yml +++ b/.github/workflows/test-compile.yml @@ -9,13 +9,15 @@ jobs: steps: - name: 'test compile rust' shell: 'bash' + env: + CARGO_TARGET_DIR: '${{ runner.temp }}' run: | set -eux sudo dpkg --add-architecture i386 sudo apt-get update sudo apt install cargo build-essential libudev-dev openssl libssl-dev linux-tools-common gcc-multilib libssl-dev:i386 \ - && sudo cargo install probe-rs-tools --timings 2>&1 | tee output.txt - timings_file="$(sudo cat output.txt | grep 'Timing report saved to ' | awk '{print $NF}')" - sudo cat "${timings_file}" + && cargo install probe-rs-tools --timings 2>&1 | tee output.txt + timings_file="$(cat output.txt | grep 'Timing report saved to ' | awk '{print $NF}')" + cat "${timings_file}" From 0a6305454334a0aae1da633d800c0599a8bf2dbe Mon Sep 17 00:00:00 2001 From: Dylan Yurgionas Date: Thu, 8 Jan 2026 13:00:54 -0600 Subject: [PATCH 10/10] Update test-compile.yml Signed-off-by: Dylan Yurgionas --- .github/workflows/test-compile.yml | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-compile.yml b/.github/workflows/test-compile.yml index 3509e1f..80cc81a 100644 --- a/.github/workflows/test-compile.yml +++ b/.github/workflows/test-compile.yml @@ -7,6 +7,23 @@ jobs: compile: runs-on: 'ubuntu-latest' steps: + + - name: Check CPU usage before build + run: | + echo "CPU info:" + nproc + echo "Load average:" + uptime + shell: bash + + - name: Check CPU usage before build + run: | + echo "CPU info:" + nproc + echo "Load average:" + uptime + shell: bash + - name: 'test compile rust' shell: 'bash' env: @@ -20,4 +37,10 @@ jobs: timings_file="$(cat output.txt | grep 'Timing report saved to ' | awk '{print $NF}')" cat "${timings_file}" - + - name: Check CPU usage before build + run: | + echo "CPU info:" + nproc + echo "Load average:" + uptime + shell: bash