Skip to content

Commit 12a9de2

Browse files
authored
update fluvio future dep (#4096)
* chore: update fluvio future crate * chore: update fluvio-future dep * use anyhow * pass through anyhow errors * pass through anyhow errors * use zig for arm * install bindgen-cli for arm * fix build-cluster * tmate debug * tmate debug * tmate debug * install gcc-multilib * install gcc-multilib * debug * use ubuntu-24.04 * use bindgen-cli * revert debug
1 parent a9cd127 commit 12a9de2

82 files changed

Lines changed: 2059 additions & 1864 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ env:
2929
K3D_VERSION: v5.4.9
3030
BATS_VERSION: 1.9.0
3131
MINIKUBE_VERSION: v1.30.1
32-
LLVM_VERSION: 14.0.0 # stick with 14 for now since Github action is default to clang-14
3332
K8_VERSION: v1.26.3
3433
TLS_ARGS: --tls --domain fluvio.local --server-key ./tls/certs/server.key --server-cert ./tls/certs/server.crt --ca-cert ./tls/certs/ca.crt --client-cert ./tls/certs/client-root.crt --client-key ./tls/certs/client-root.key
3534
AUTH_FILE: crates/fluvio-sc/test-data/auth_config/policy.json
@@ -82,10 +81,6 @@ jobs:
8281
uses: dtolnay/rust-toolchain@stable
8382
- name: install rust target
8483
run: rustup target add ${{ matrix.rust-target }}
85-
- name: Install LLVM and Clang
86-
uses: KyleMayes/install-llvm-action@v1
87-
with:
88-
version: "${{ env.LLVM_VERSION }}"
8984
- name: Install zig
9085
run: ./actions/zig-install.sh
9186
- uses: Swatinem/rust-cache@v2
@@ -153,7 +148,7 @@ jobs:
153148
- os: ubuntu-latest
154149
rust-target: armv7-unknown-linux-gnueabihf
155150
binary: fluvio-run
156-
- os: ubuntu-latest
151+
- os: ubuntu-24.04
157152
rust-target: x86_64-pc-windows-gnu
158153
binary: fluvio.exe
159154
- os: macos-12
@@ -178,7 +173,7 @@ jobs:
178173
- os: ubuntu-latest
179174
rust-target: armv7-unknown-linux-gnueabihf
180175
binary: fluvio-channel
181-
- os: ubuntu-latest
176+
- os: ubuntu-24.04
182177
rust: stable
183178
rust-target: x86_64-pc-windows-gnu
184179
binary: fluvio-channel.exe
@@ -212,7 +207,7 @@ jobs:
212207
- os: ubuntu-latest
213208
rust-target: armv7-unknown-linux-gnueabihf
214209
binary: fbm
215-
- os: ubuntu-latest
210+
- os: ubuntu-24.04
216211
rust-target: x86_64-pc-windows-gnu
217212
binary: fbm.exe
218213
- os: macos-12
@@ -229,7 +224,7 @@ jobs:
229224
- os: ubuntu-latest
230225
rust-target: armv7-unknown-linux-gnueabihf
231226
binary: fvm
232-
- os: ubuntu-latest
227+
- os: ubuntu-24.04
233228
rust-target: x86_64-pc-windows-gnu
234229
binary: fvm.exe
235230
- os: macos-12
@@ -266,6 +261,12 @@ jobs:
266261
run: rustup target add ${{ matrix.rust-target }}
267262
- name: Install zig
268263
run: ./actions/zig-install.sh ${{ matrix.os }}
264+
- name: Install gcc-multilib
265+
run: sudo apt-get install gcc-multilib
266+
if: matrix.rust-target == 'arm-unknown-linux-gnueabihf' || matrix.rust-target == 'armv7-unknown-linux-gnueabihf'
267+
- name: Install NASM
268+
if: matrix.rust-target == 'x86_64-pc-windows-gnu'
269+
uses: ilammy/setup-nasm@v1
269270
- uses: Swatinem/rust-cache@v2
270271
timeout-minutes: 10
271272
with:
@@ -274,17 +275,21 @@ jobs:
274275
run: brew install helm
275276
if: matrix.binary == 'fluvio' && matrix.os == 'macos-12'
276277

277-
- name: Build fluvio
278-
timeout-minutes: 40
279-
if: matrix.binary == 'fluvio'
280-
run: make build-cli
281-
282278
- name: Install mingw gcc
283279
if: matrix.rust-target == 'x86_64-pc-windows-gnu'
284280
run: |
285281
sudo apt-get update -o="APT::Acquire::Retries=3"
286282
sudo apt-get install -y -V -o="APT::Acquire::Retries=3" gcc-mingw-w64-x86-64
287283
284+
- name: Install bindgen-cli
285+
if: matrix.rust-target == 'x86_64-pc-windows-gnu'
286+
run: cargo install --force --locked bindgen-cli
287+
288+
- name: Build fluvio
289+
timeout-minutes: 40
290+
if: matrix.binary == 'fluvio'
291+
run: make build-cli
292+
288293
- name: Build fluvio.exe
289294
timeout-minutes: 40
290295
if: matrix.binary == 'fluvio.exe'
@@ -549,6 +554,8 @@ jobs:
549554
- uses: actions/checkout@v4
550555
- name: Install Rust Stable
551556
uses: dtolnay/rust-toolchain@stable
557+
- name: Install NASM
558+
uses: ilammy/setup-nasm@v1
552559
- name: Rust version
553560
run: rustc --version
554561
- uses: Swatinem/rust-cache@v2
@@ -1624,4 +1631,3 @@ jobs:
16241631
with:
16251632
event-type: ci-success
16261633
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'
1627-

0 commit comments

Comments
 (0)