Skip to content

Commit

Permalink
ci: try add more archs
Browse files Browse the repository at this point in the history
  • Loading branch information
sandhilt committed Oct 3, 2024
1 parent 17ed4c4 commit ab83fa1
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 12 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ jobs:
command: cargo
# Versions of ring is not supported on riscv64
# used by rustls, rustls-webpki, sct, webpki
# - name: Linux-riscv64
# runner: ubuntu-latest
# target: riscv64gc-unknown-linux-gnu
# command: cross
- name: Linux-riscv64
runner: ubuntu-latest
target: riscv64gc-unknown-linux-gnu
command: cargo
- name: Linux-arm64
runner: ubuntu-latest
target: aarch64-unknown-linux-gnu
Expand All @@ -76,11 +76,23 @@ jobs:
- uses: actions/checkout@v4

- name: Install requirements (Linux)
if: matrix.runner == 'ubuntu-latest' && matrix.command == 'cargo'
if: matrix.target == 'x86_64-unknown-linux-gnu'
run: |
sudo apt-get update
sudo apt-get install protobuf-compiler
- name: Install requirements (Linux ARM64)
if: matrix.target == 'aarch64-unknown-linux-gnu'
run: |
sudo apt-get update
sudo apt-get install protobuf-compiler g++-aarch64-linux-gnu
- name: Install requirements (Linux RISC-V)
if: matrix.target == 'riscv64gc-unknown-linux-gnu'
run: |
sudo apt-get update
sudo apt-get install protobuf-compiler g++-riscv64-linux-gnu
- name: Install requirements (MacOS)
if: matrix.runner == 'macos-latest'
run: brew install protobuf
Expand Down
7 changes: 0 additions & 7 deletions Cross.toml

This file was deleted.

8 changes: 8 additions & 0 deletions decode-batch/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[build]
rustflags = ["-C", "target-feature=+crt-static"]

[target.aarch64-unknown-linux-gnu]
linker = "aarch64-linux-gnu-g++"

[target.riscv64gc-unknown-linux-gnu]
linker = "riscv64-linux-gnu-g++"
9 changes: 9 additions & 0 deletions tripa/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
[env]
RUST_TEST_THREADS = "1"

[build]
rustflags = ["-C", "target-feature=+crt-static"]

[target.aarch64-unknown-linux-gnu]
linker = "aarch64-linux-gnu-g++"

[target.riscv64gc-unknown-linux-gnu]
linker = "riscv64-linux-gnu-g++"

0 comments on commit ab83fa1

Please sign in to comment.