Skip to content

Commit

Permalink
Adjust CI
Browse files Browse the repository at this point in the history
  • Loading branch information
gferon committed Oct 15, 2024
1 parent 36086bc commit 8295bc8
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --features "${{ matrix.features }}" --manifest-path ${{ matrix.project }}/Cargo.toml
args: --manifest-path ${{ matrix.project }}/Cargo.toml

build:
name: Build (${{ matrix.project }}, Rust ${{ matrix.toolchain }})
Expand All @@ -43,7 +43,6 @@ jobs:
project: ["libsignal-service"]
toolchain: ["stable", "beta", "nightly"]
coverage: [false, true]
features: ["", "unsend-futures"]
exclude:
# Coverage related excludes
- toolchain: stable
Expand All @@ -52,13 +51,6 @@ jobs:
coverage: true
- toolchain: nightly
coverage: false

# Feature flag related excludes
# Actix like above
- features: "unsend-futures"
toolchain: "beta"
- features: "unsend-futures"
toolchain: "nightly"
steps:
- uses: actions/checkout@v3
- name: Install protobuf
Expand All @@ -75,20 +67,20 @@ jobs:
if: ${{ !matrix.coverage }}
with:
command: test
args: --all-targets --no-fail-fast --features "${{ matrix.features }}" --manifest-path ${{ matrix.project }}/Cargo.toml
args: --all-targets --no-fail-fast --manifest-path ${{ matrix.project }}/Cargo.toml

- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --all-targets --features "${{ matrix.features }}" --manifest-path ${{ matrix.project }}/Cargo.toml
args: --all-targets --manifest-path ${{ matrix.project }}/Cargo.toml

- name: Run tests
uses: actions-rs/cargo@v1
if: ${{ matrix.coverage }}
with:
command: test
args: --all-targets --no-fail-fast --features "${{ matrix.features }}" --manifest-path ${{ matrix.project }}/Cargo.toml
args: --all-targets --no-fail-fast --manifest-path ${{ matrix.project }}/Cargo.toml
env:
CARGO_INCREMENTAL: '0'
RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
Expand Down

0 comments on commit 8295bc8

Please sign in to comment.