@@ -82,39 +82,30 @@ jobs:
82
82
- name : Run hadolint against Dockerfiles
83
83
run : docker run --rm -i -v "$PWD":/workdir --workdir /workdir --entrypoint hadolint hadolint/hadolint --ignore DL3013 --ignore DL3008 $(find . -type f -iname "Dockerfile*")
84
84
85
- # test_rust_functionality:
86
- # name: Build and test rust functionality
87
- # runs-on: ubuntu-latest
88
-
89
- # steps:
90
- # - name: Checkout
91
-
92
- # with:
93
- # fetch-depth: 0
94
-
95
- # - name: Install Rust and deps
96
- # run: |
97
- # curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
98
- # sudo apt-get update
99
- # sudo apt-get install -y --no-install-recommends libzmq3-dev
100
- # python3 -m pip install zmq
101
-
102
- # - name: Get binary version from Cargo.toml
103
- # id: release_version
104
- # run: |
105
- # # Get version from Cargo.toml
106
- # RELEASE_VERSION=$(cat ./rust/bin/acars_router/Cargo.toml | grep '\[package\]' -A9999 | grep -m 1 'version = ' | tr -d " " | tr -d '"' | tr -d "'" | cut -d = -f 2)
107
- # echo "$RELEASE_VERSION"
108
-
109
- # - name: Run tests
110
- # run: |
111
- # cd test_data
112
- # ./run_acars_ruster_test.sh
85
+ test_rust_functionality :
86
+ name : Build and test rust functionality
87
+ runs-on : ubuntu-latest
88
+
89
+ steps :
90
+ - name : Checkout
91
+
92
+ with :
93
+ fetch-depth : 0
94
+
95
+ - name : Install Rust and deps
96
+ run : |
97
+ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
98
+ sudo apt-get update
99
+ sudo apt-get install -y --no-install-recommends libzmq3-dev librtlsdr-dev
100
+
101
+ - name : Run tests
102
+ run : |
103
+ env CARGO_NET_GIT_FETCH_WITH_CLI=true cargo test
113
104
114
105
binary_build_armv7 :
115
106
name : Build Binary - armv7
116
107
runs-on : ubuntu-latest
117
- # needs: test_rust_functionality
108
+ needs : test_rust_functionality
118
109
119
110
steps :
120
111
- name : Checkout
@@ -154,7 +145,7 @@ jobs:
154
145
binary_build_arm64 :
155
146
name : Build Binary - arm64
156
147
runs-on : ubuntu-latest
157
- # needs: test_rust_functionality
148
+ needs : test_rust_functionality
158
149
159
150
steps :
160
151
- name : Checkout
@@ -194,7 +185,7 @@ jobs:
194
185
binary_build_amd64 :
195
186
name : Build Binary - amd64
196
187
runs-on : ubuntu-latest
197
- # needs: test_rust_functionality
188
+ needs : test_rust_functionality
198
189
199
190
steps :
200
191
- name : Checkout
@@ -234,7 +225,13 @@ jobs:
234
225
consolidate_binaries :
235
226
name : Consolidate & Cache Binaries
236
227
runs-on : ubuntu-latest
237
- needs : [binary_build_amd64, binary_build_arm64, binary_build_armv7]
228
+ needs :
229
+ [
230
+ binary_build_amd64,
231
+ binary_build_arm64,
232
+ binary_build_armv7,
233
+ test_rust_functionality,
234
+ ]
238
235
steps :
239
236
- run : mkdir -p ./bin
240
237
0 commit comments