Skip to content

Commit fdb3c3b

Browse files
Pin Rust version in CI workflows to 1.67
1 parent b8b60dd commit fdb3c3b

File tree

8 files changed

+58
-24
lines changed

8 files changed

+58
-24
lines changed

.github/workflows/publish-android.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ env:
1010

1111
jobs:
1212
build:
13-
runs-on: ubuntu-22.04
13+
runs-on: ubuntu-20.04
1414
steps:
1515
- name: "Install Android NDK 21.4.7075529"
1616
run: |
@@ -37,6 +37,9 @@ jobs:
3737
distribution: temurin
3838
java-version: 11
3939

40+
- name: "Set default Rust version to 1.67.0"
41+
run: rustup default 1.67.0
42+
4043
- name: "Install Rust Android targets"
4144
run: rustup target add x86_64-linux-android aarch64-linux-android armv7-linux-androideabi
4245

.github/workflows/publish-jvm.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ jobs:
2424
distribution: temurin
2525
java-version: 11
2626

27+
- name: "Set default Rust version to 1.67.0"
28+
run: rustup default 1.67.0
29+
2730
- name: Install aarch64 Rust target
2831
run: rustup target add aarch64-apple-darwin
2932

@@ -43,7 +46,7 @@ jobs:
4346
build-jvm-full-library:
4447
name: Create full bdk-jvm library
4548
needs: [build-jvm-macOS-M1-native-lib]
46-
runs-on: ubuntu-22.04
49+
runs-on: ubuntu-20.04
4750
steps:
4851
- name: Checkout publishing branch
4952
uses: actions/checkout@v2
@@ -68,6 +71,9 @@ jobs:
6871
distribution: temurin
6972
java-version: 11
7073

74+
- name: "Set default Rust version to 1.67.0"
75+
run: rustup default 1.67.0
76+
7177
- name: Build bdk-jvm library
7278
run: |
7379
cd bdk-jvm

.github/workflows/publish-python.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on: [workflow_dispatch]
99
jobs:
1010
build-manylinux2014-x86_64-wheel:
1111
name: "Build Manylinux 2014 x86_64 wheel"
12-
runs-on: ubuntu-22.04
12+
runs-on: ubuntu-20.04
1313
defaults:
1414
run:
1515
working-directory: bdk-python
@@ -37,6 +37,9 @@ jobs:
3737
with:
3838
toolchain: stable
3939

40+
- name: "Set default Rust version to 1.67.0"
41+
run: rustup default 1.67.0
42+
4043
- name: "Install requirements"
4144
run: ${PYBIN}/pip install -r requirements.txt
4245

@@ -128,7 +131,7 @@ jobs:
128131

129132
publish-pypi:
130133
name: "Publish on PyPI"
131-
runs-on: ubuntu-22.04
134+
runs-on: ubuntu-20.04
132135
defaults:
133136
run:
134137
working-directory: bdk-python

.github/workflows/test-android.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: Test Android
22
on:
3+
workflow_dispatch:
34
push:
45
paths:
56
- "bdk-ffi/**"
@@ -18,7 +19,7 @@ env:
1819

1920
jobs:
2021
build:
21-
runs-on: ubuntu-22.04
22+
runs-on: ubuntu-20.04
2223
steps:
2324
- name: "Install Android NDK 21.4.7075529"
2425
run: |
@@ -45,9 +46,17 @@ jobs:
4546
distribution: temurin
4647
java-version: 11
4748

49+
- name: "Set default Rust version to 1.67.0"
50+
run: rustup default 1.67.0
51+
4852
- name: "Install Rust Android targets"
4953
run: rustup target add x86_64-linux-android aarch64-linux-android armv7-linux-androideabi
5054

55+
- name: "Build Android library"
56+
run: |
57+
cd bdk-android
58+
./gradlew buildAndroidLib
59+
5160
# There are currently no unit tests for bdk-android and the integration tests require the macOS image
5261
# which is not working with the older NDK version we are using, so for now we just make sure that the library builds.
5362
# - name: "Run Android unit tests"

.github/workflows/test-jvm.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: Test Kotlin/JVM
22
on:
3+
workflow_dispatch:
34
push:
45
paths:
56
- "bdk-ffi/**"
@@ -31,6 +32,9 @@ jobs:
3132
distribution: temurin
3233
java-version: 11
3334

35+
- name: "Set default Rust version to 1.67.0"
36+
run: rustup default 1.67.0
37+
3438
- name: Run JVM tests
3539
run: |
3640
cd bdk-jvm

.github/workflows/test-python.yaml

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: Test Python
22
on:
3+
workflow_dispatch:
34
push:
45
paths:
56
- "bdk-ffi/**"
@@ -17,7 +18,7 @@ on:
1718
jobs:
1819
build-manylinux2014-x86_64-wheel:
1920
name: "Build and test Manylinux 2014 x86_64 wheels"
20-
runs-on: ubuntu-22.04
21+
runs-on: ubuntu-20.04
2122
defaults:
2223
run:
2324
working-directory: bdk-python
@@ -29,10 +30,10 @@ jobs:
2930
strategy:
3031
matrix:
3132
python:
32-
# - cp36-cp36m
33-
# - cp37-cp37m
34-
# - cp38-cp38
35-
# - cp39-cp39
33+
- cp36-cp36m
34+
- cp37-cp37m
35+
- cp38-cp38
36+
- cp39-cp39
3637
- cp310-cp310
3738
steps:
3839
- name: "Checkout"
@@ -43,6 +44,9 @@ jobs:
4344
with:
4445
toolchain: stable
4546

47+
- name: "Set default Rust version to 1.67.0"
48+
run: rustup default 1.67.0
49+
4650
- name: "Install requirements"
4751
run: ${PYBIN}/pip install -r requirements.txt
4852

@@ -73,10 +77,10 @@ jobs:
7377
strategy:
7478
matrix:
7579
python:
76-
# - '3.7'
77-
# - '3.8'
78-
# - '3.9'
79-
- '3.10'
80+
- "3.7"
81+
- "3.8"
82+
- "3.9"
83+
- "3.10"
8084
steps:
8185
- name: Checkout
8286
uses: actions/checkout@v2
@@ -113,10 +117,10 @@ jobs:
113117
strategy:
114118
matrix:
115119
python:
116-
# - '3.7'
117-
# - '3.8'
118-
# - '3.9'
119-
- '3.10'
120+
- "3.7"
121+
- "3.8"
122+
- "3.9"
123+
- "3.10"
120124
steps:
121125
- name: "Checkout"
122126
uses: actions/checkout@v2
@@ -135,12 +139,11 @@ jobs:
135139
- name: "Build wheel"
136140
run: python setup.py bdist_wheel --verbose
137141

138-
# TODO: On Windows the pip install ./dist/*.whl step fails with the following error:
139-
# Run pip install ./dist/*.whl
140-
# WARNING: Requirement './dist/*.whl' looks like a filename, but the file does not exist
141-
# ERROR: *.whl is not a valid wheel filename.*.whl is not a valid wheel name
142-
# So we skip the installing and the tests and simply test that the wheel builds
143-
142+
# TODO: On Windows the pip install ./dist/*.whl step fails with the following error:
143+
# Run pip install ./dist/*.whl
144+
# WARNING: Requirement './dist/*.whl' looks like a filename, but the file does not exist
145+
# ERROR: *.whl is not a valid wheel filename.*.whl is not a valid wheel name
146+
# So we skip the installing and the tests and simply test that the wheel builds
144147
# - name: Install wheel
145148
# run: pip install ./dist/*.whl
146149
# - name: Run tests

.github/workflows/test-swift.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: Test Swift
22
on:
3+
workflow_dispatch:
34
push:
45
paths:
56
- "bdk-ffi/**"
@@ -16,6 +17,9 @@ jobs:
1617
- name: Checkout
1718
uses: actions/checkout@v2
1819

20+
- name: "Set default Rust version to 1.67.0"
21+
run: rustup default 1.67.0
22+
1923
- name: Install Rust targets
2024
run: |
2125
rustup install nightly-x86_64-apple-darwin

bdk-python/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,5 @@ tox -vv
4646
```shell
4747
pip install ./dist/bdkpython-<yourversion>-py3-none-any.whl
4848
```
49+
50+
Extra line for CI test

0 commit comments

Comments
 (0)