Skip to content

Commit 029ec05

Browse files
committed
Test RISC-V V extension
1 parent 4697d39 commit 029ec05

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -204,32 +204,23 @@ jobs:
204204
target_feature: [default]
205205
include:
206206
- { target: powerpc64le-unknown-linux-gnu, target_feature: "+vsx" }
207+
- { target: riscv64gc-unknown-linux-gnu, target_feature: "+v,+zvl128b" }
207208
# Fails due to QEMU floating point errors, probably handling subnormals incorrectly.
208209
# This target is somewhat redundant, since ppc64le has altivec as well.
209210
# - { target: powerpc-unknown-linux-gnu, target_feature: "+altivec" }
210-
# We should test this, but cross currently can't run it
211-
# - { target: riscv64gc-unknown-linux-gnu, target_feature: "+v,+zvl128b" }
212211

213212
steps:
214213
- uses: actions/checkout@v2
215214
- name: Setup Rust
216215
run: rustup target add ${{ matrix.target }}
217216

218217
- name: Install Cross
219-
# Equivalent to `cargo install cross`, but downloading a prebuilt
220-
# binary. Ideally we wouldn't hardcode a version, but the version number
221-
# being part of the tarball means we can't just use the download/latest
222-
# URL :(
223-
run: |
224-
CROSS_URL=https://github.com/cross-rs/cross/releases/download/v0.2.5/cross-x86_64-unknown-linux-gnu.tar.gz
225-
mkdir -p "$HOME/.bin"
226-
curl -sfSL --retry-delay 10 --retry 5 "${CROSS_URL}" | tar zxf - -C "$HOME/.bin"
227-
echo "$HOME/.bin" >> $GITHUB_PATH
218+
run: cargo install cross --git https://github.com/cross-rs/cross --rev d8631fe4f4e8bb4c4b24417a35544857fb42ee22
228219

229220
- name: Configure Emulated CPUs
230221
run: |
231222
echo "CARGO_TARGET_POWERPC_UNKNOWN_LINUX_GNU_RUNNER=qemu-ppc -cpu e600" >> $GITHUB_ENV
232-
# echo "CARGO_TARGET_RISCV64GC_UNKNOWN_LINUX_GNU_RUNNER=qemu-riscv64 -cpu rv64,zba=true,zbb=true,v=true,vlen=256,vext_spec=v1.0" >> $GITHUB_ENV
223+
echo "CARGO_TARGET_RISCV64GC_UNKNOWN_LINUX_GNU_RUNNER=qemu-riscv64 -cpu rv64,zba=true,zbb=true,v=true,vlen=256,vext_spec=v1.0" >> $GITHUB_ENV
233224
234225
- name: Configure RUSTFLAGS
235226
shell: bash

0 commit comments

Comments
 (0)