瀏覽代碼

ci(unit-tests/freebsd): use rust 1.74 instead of latest via rustup

Signed-off-by: Sandro-Alessio Gierens <sandro@gierens.de>
Sandro-Alessio Gierens 1 年之前
父節點
當前提交
5ac404ed11
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      .github/workflows/unit-tests.yml

+ 4 - 1
.github/workflows/unit-tests.yml

@@ -92,11 +92,14 @@ jobs:
           release: '14.2'
           usesh: true
           prepare: |
-            pkg install -y rust git
+            pkg install -y curl git
+            curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain 1.74 -y
+            . ~/.cargo/env
             cargo install cargo-hack
             git config --global --add safe.directory /home/runner/work/eza/eza
           run: |
             set -e
+            . ~/.cargo/env
             export CARGO_TERM_COLOR="always"
             export RUSTFLAGS="--deny warnings"
             cargo fmt --check