diff --git a/.github/workflows/cargo.yml b/.github/workflows/cargo.yml index be84bb13..ffbe6acd 100644 --- a/.github/workflows/cargo.yml +++ b/.github/workflows/cargo.yml @@ -15,7 +15,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ ubuntu-latest, macos-latest ] + os: [ ubuntu-latest, macos-12 ] steps: - uses: actions/checkout@v3 - uses: ./.github/actions/setup-rust @@ -39,21 +39,6 @@ jobs: run: | cargo hack --feature-powerset check --locked - # check-windows: - # name: check-${{ matrix.os }} - # runs-on: ${{ matrix.os }} - # strategy: - # matrix: - # os: [ windows-latest ] - # steps: - # - uses: actions/checkout@v3 - # - uses: Swatinem/rust-cache@v2 - # with: - # shared-key: check-${{ matrix.os }} - # - name: cargo check - # run: | - # cargo check --all-targets - clippy: runs-on: ubuntu-latest steps: @@ -123,7 +108,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ ubuntu-latest, macos-latest ] + os: [ ubuntu-latest, macos-12 ] profile: [ release, debug ] steps: - uses: actions/checkout@v3 @@ -168,50 +153,12 @@ jobs: name: binaries path: install - # build-windows: - # name: build-${{ matrix.os }}-${{ matrix.profile }} - # runs-on: ${{ matrix.os }} - # strategy: - # matrix: - # os: [ windows-latest ] - # profile: [ release, debug ] - # steps: - # - uses: actions/checkout@v3 - # - uses: Swatinem/rust-cache@v2 - # with: - # shared-key: build-${{ matrix.os }}-${{ matrix.profile }} - - # - name: Update cargo flags - # if: ${{ matrix.profile == 'release' }} - # run: echo 'FLAGS=--release' >> $GITHUB_ENV - # shell: bash - # - name: Update cargo flags - # if: ${{ matrix.profile == 'debug' }} - # run: echo 'FLAGS=' >> $GITHUB_ENV - # shell: bash - - # - name: build - # shell: bash - # run: | - # cargo build --workspace --exclude momento-proxy --all-features --all-targets --locked ${{ env.FLAGS }} - # - name: test - # shell: bash - # run: | - # cargo test --workspace --exclude momento-proxy --all-features --tests --lib --bins --examples --locked ${{ env.FLAGS }} - # - name: doctests - # if: ${{ matrix.profile == 'debug' }} - # shell: bash - # run: | - # cargo test --workspace --exclude momento-proxy --all-features --doc --locked -- --test-threads 16 - check-success: name: verify all tests pass runs-on: ubuntu-latest needs: - build - # - build-windows - check - # - check-windows - rustfmt - clippy - clippy-upload