Repository: bitcoindevkit/bdk-ffi (language: python)

Issue:
Python CI workflows use actions-rs/toolchain@v1 but the scripts define the Rust compiler version explicitly
We should streamline how we use and define what Rust compiler version is being used in all CI workflows. The Python workflows set the version differently than the Android/JVM/Swift workflows.


Discussion / hints:

Fix patch:
diff --git a/.github/workflows/publish-python.yaml b/.github/workflows/publish-python.yaml
index ff51cf20..301421e2 100644
--- a/.github/workflows/publish-python.yaml
+++ b/.github/workflows/publish-python.yaml
@@ -31,11 +31,12 @@ jobs:
         uses: actions/checkout@v3
         with:
           submodules: true
-      # TODO 2: Other CI workflows use explicit Rust compiler versions, I think we should do the same here
-      - uses: actions-rs/toolchain@v1
-        with:
-          toolchain: stable
 
+      - name: "Install Rust 1.77.1"
+        uses: actions-rs/toolchain@v1
+        with:
+          toolchain: 1.77.1
+          
       - name: "Generate bdk.py and binaries"
         run: bash ./scripts/generate-linux.sh
 


Test patch:
diff --git a/.github/workflows/live-tests.yaml b/.github/workflows/live-tests.yaml
index 9226dda7..da943ec9 100644
--- a/.github/workflows/live-tests.yaml
+++ b/.github/workflows/live-tests.yaml
@@ -74,9 +74,11 @@ jobs:
         uses: actions/checkout@v3
         with:
           submodules: true
-      - uses: actions-rs/toolchain@v1
+
+      - name: "Install Rust 1.77.1"
+        uses: actions-rs/toolchain@v1
         with:
-          toolchain: stable
+          toolchain: 1.77.1
 
       - name: "Generate bdk.py and binaries"
         run: bash ./scripts/generate-linux.sh
diff --git a/.github/workflows/test-python.yaml b/.github/workflows/test-python.yaml
index 0618e9d7..1a35ddc4 100644
--- a/.github/workflows/test-python.yaml
+++ b/.github/workflows/test-python.yaml
@@ -40,10 +40,12 @@ jobs:
         uses: actions/checkout@v3
         with:
           submodules: true
-      - uses: actions-rs/toolchain@v1
-        with:
-          toolchain: stable
 
+      - name: "Install Rust 1.77.1"
+        uses: actions-rs/toolchain@v1
+        with:
+          toolchain: 1.77.1
+          
       - name: "Generate bdk.py and binaries"
         run: bash ./scripts/generate-linux.sh