From b1267354da8e851075ffd1590f4236d654d895d8 Mon Sep 17 00:00:00 2001 From: Anatoly Laskaris Date: Fri, 9 Sep 2022 19:39:33 +0300 Subject: [PATCH] Update workflow (#22) * Update workflow * Fix * Update * Delete tests * Revert "Delete tests" This reverts commit 9c627ffe589300fe54ca316de67f06ca32e3f3c3. * Delete `cargo test` command from workflow file --- .github/workflows/test.yml | 54 ++++++++------------------------------ 1 file changed, 11 insertions(+), 43 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0f11475..c2fd0f3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,58 +1,26 @@ -name: Build and Test +name: "interface-types" -on: [push, pull_request] +on: + pull_request: jobs: - # The `test` job. - test: - name: Test + build: + name: "Build" strategy: - matrix: - # The job runs on different OS. - os: [ubuntu-latest, macos-latest, windows-latest] - # As soon as one job fails in the matrix, all the other - # in-progress jobs are canceled. fail-fast: true + matrix: + os: + - ubuntu-latest runs-on: ${{ matrix.os }} steps: - name: Check out code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Set up Rust - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - default: true - override: true - - - name: Cache Cargo registry - uses: actions/cache@v1 - with: - path: ~/.cargo/registry - key: ${{ matrix.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} - - - name: Cache Cargo bin - uses: actions/cache@v1 - with: - path: ~/.cargo/bin - key: ${{ matrix.os }}-cargo-bin-${{ hashFiles('**/Cargo.lock') }} - - - name: Cache Cargo build - uses: actions/cache@v1 - with: - path: target - key: ${{ matrix.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }} + uses: actions-rust-lang/setup-rust-toolchain@v1 - name: Compile the library - shell: bash - run: | - export PATH="$HOME/.cargo/bin:$PATH" - cargo build --release - - - name: Run all the tests - shell: bash - run: | - cargo test --release + run: cargo build --release