Skip to content

Commit

Permalink
try to fix the ci
Browse files Browse the repository at this point in the history
  • Loading branch information
brayniac committed Jun 26, 2024
1 parent 8425cd1 commit 2cee0ed
Showing 1 changed file with 51 additions and 51 deletions.
102 changes: 51 additions & 51 deletions .github/workflows/cargo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,20 @@ 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
# 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
Expand Down Expand Up @@ -168,50 +168,50 @@ 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
# 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
# - build-windows
- check
- check-windows
# - check-windows
- rustfmt
- clippy
- clippy-upload
Expand Down

0 comments on commit 2cee0ed

Please sign in to comment.