From 46c15fc7248c772768c37eb861386ce61ddc855f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Harabie=C5=84?= Date: Mon, 22 Apr 2024 00:20:48 +0200 Subject: [PATCH] Stop using no longer maintained actions-rs See: https://github.com/rust-lang/infra-team/issues/96 --- .github/workflows/ci.yml | 46 ++++++++++++---------------------------- 1 file changed, 14 insertions(+), 32 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8524956..61a29ea 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,41 +27,23 @@ jobs: uses: actions/checkout@v4 - name: Install toolchain - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: ${{ matrix.rust_version }} - override: true + run: | + rustup install ${{ matrix.rust_version }} + rustup default ${{ matrix.rust_version }} + rustc --version - - name: Print Rust compiler version - run: rustc --version + - name: Build + run: cargo build - - name: Run cargo build - uses: actions-rs/cargo@v1 - with: - command: build - - - name: Run cargo test - uses: actions-rs/cargo@v1 - with: - command: test - args: --verbose + - name: Run tests + run: cargo test --verbose if: ${{ matrix.run_tests }} - - name: Run cargo build - no_std - uses: actions-rs/cargo@v1 - with: - command: build - args: --no-default-features + - name: Build - no_std + run: cargo build --no-default-features - - name: Run cargo build - no_std, lfn - uses: actions-rs/cargo@v1 - with: - command: build - args: --no-default-features --features lfn + - name: Build - no_std, lfn + run: cargo build --no-default-features --features lfn - - name: Run cargo build - no_std, alloc, lfn, unicode - uses: actions-rs/cargo@v1 - with: - command: build - args: --no-default-features --features alloc,lfn,unicode + - name: Build - no_std, alloc, lfn, unicode + run: cargo build --no-default-features --features alloc,lfn,unicode