diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1f44212..a7f7b69 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,18 +10,12 @@ jobs: - name: Checkout source code uses: actions/checkout@v3 - - name: Install rust toolchain - uses: dtolnay/rust-toolchain@stable + - uses: actions-rust-lang/setup-rust-toolchain@v1 with: components: clippy, rustfmt - - uses: Swatinem/rust-cache@v2 - - - name: Install latest just release - uses: taiki-e/install-action@just - - - name: Install latest dprint release - uses: taiki-e/install-action@dprint + - uses: taiki-e/install-action@just + - uses: taiki-e/install-action@dprint - name: Check MSRV run: | @@ -35,6 +29,13 @@ jobs: echo "MSRV match" fi + - name: Show version information + shell: bash + run: | + rustc --version + cargo --version + cargo fmt --version + - name: Ensure `fmt` has been run run: just fmt-check @@ -50,18 +51,10 @@ jobs: - name: Checkout source code uses: actions/checkout@v3 - - name: Install rust toolchain (v${{ env.MIN_SUPPORTED_RUST_VERSION }}) - uses: dtolnay/rust-toolchain@master - with: - toolchain: ${{ env.MIN_SUPPORTED_RUST_VERSION }} - - - uses: Swatinem/rust-cache@v2 + - uses: actions-rust-lang/setup-rust-toolchain@v1 - - name: Install latest nextest release - uses: taiki-e/install-action@nextest - - - name: Install latest just release - uses: taiki-e/install-action@just + - uses: taiki-e/install-action@nextest + - uses: taiki-e/install-action@just - name: Prepare the environment variables run: | @@ -77,6 +70,12 @@ jobs: # Check DB version docker exec postgres_db psql -h localhost -p 5432 -U durin --version + - name: Show version information + shell: bash + run: | + rustc --version + cargo --version + - name: Run tests env: DATABASE_URL: postgres://durin:SpeakFriendAndEnter@localhost:5432/tin @@ -101,20 +100,15 @@ jobs: - name: Checkout source code uses: actions/checkout@v3 - - name: Install Rust toolchain - uses: dtolnay/rust-toolchain@stable + - uses: actions-rust-lang/setup-rust-toolchain@v1 with: target: ${{ matrix.target }} - name: Show version information shell: bash run: | - gcc --version || true - rustup -V - rustup toolchain list - rustup default - cargo -V - rustc -V + rustc --version + cargo --version - name: Install musl-tools if: matrix.target == 'x86_64-unknown-linux-musl' @@ -123,10 +117,5 @@ jobs: sudo apt-get install -y --no-install-recommends \ --allow-unauthenticated musl-tools - - name: Rust cache - uses: Swatinem/rust-cache@v2 - with: - key: ${{ matrix.os }}-${{ matrix.target }} - - name: Build run: cargo build --release --locked --target ${{ matrix.target }}