Skip to content

cargo: riscv pkg added #24

cargo: riscv pkg added

cargo: riscv pkg added #24

Workflow file for this run

name: CI Build
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: goto-bus-stop/setup-zig@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Install features
run: |
sudo apt update && sudo apt install -y \
qemu-user-binfmt gcc-riscv64-linux-gnu \
&& rustup target add riscv64gc-unknown-linux-gnu
- name: build RISC-V64
run: |
echo -e "Rust build GNU test" \
&& cargo run --release --target riscv64gc-unknown-linux-gnu \
&& echo -e "Zig build Musl test" \
&& zig build run -Doptimize=ReleaseSafe -Dtarget=riscv64-linux-musl
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: goto-bus-stop/setup-zig@v2
with:
version: master
- run: |
cargo fmt --check --all \
&& zig fmt --check --ast-check **.zig