From 71a34509b03f766c2c30cd11bccdfa0b021c2365 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Fri, 24 Feb 2023 16:56:15 -0800 Subject: [PATCH] add rust code to CI --- .gitlab-ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.30.2