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