From: Jacob Lifshay Date: Sat, 25 Feb 2023 00:56:15 +0000 (-0800) Subject: add rust code to CI X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=71a34509b03f766c2c30cd11bccdfa0b021c2365;p=bigint-presentation-code.git add rust code to CI --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0e4f08c..4574c0f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -16,6 +16,7 @@ build: binutils-powerpc64le-linux-gnu build-essential ccache + curl git libffi-dev pkg-config @@ -32,7 +33,14 @@ build: - ccache --zero-stats || true - ccache --show-stats || true - python3 -m pip install --user pytest-xdist + - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain 1.67.1 --profile minimal --component rustfmt + - source "$HOME/.cargo/env" script: + - pushd register_allocator + - cargo fmt --all --check + - cargo test --locked --workspace + - popd + - git clone --depth 1 https://gitlab.com/nmigen/nmigen.git nmigen - pushd nmigen - git rev-parse HEAD