Skip to content

Commit

Permalink
Try
Browse files Browse the repository at this point in the history
  • Loading branch information
lstrojny committed Dec 22, 2023
1 parent c1cfa00 commit 3677f92
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
matrix:
include:
- { toolchain: stable, host: ubuntu-22.04 }
- { toolchain: nightly, host: macos-12 }
- { toolchain: nightly, host: macos-13 }
runs-on: ${{ matrix.host }}
steps:
- name: Checkout source
Expand Down Expand Up @@ -65,17 +65,19 @@ jobs:
uses: actions-rs/cargo@v1.0.3
with:
command: clippy
args: --all ${{ matrix.toolchain == 'nightly' && '-F nightly' || '' }}

- name: Static analysis with clippy
- name: Run tests
uses: actions-rs/cargo@v1.0.3
with:
command: clippy
args: --tests
command: test

- name: Run tests
- name: Run benchmarks
uses: actions-rs/cargo@v1.0.3
with:
command: test
command: bench
args: -F nightly
if: matrix.toolchain == 'nightly'

- name: Check for security issues
uses: actions-rs/audit-check@v1.2.0
Expand All @@ -89,10 +91,10 @@ jobs:
fail-fast: false
matrix:
include:
- { desc: arm-mac, target: aarch64-apple-darwin, host: macos-12, profile: release, toolchain: stable }
- { desc: arm-mac-dbg, target: aarch64-apple-darwin, host: macos-12, profile: debug, toolchain: stable }
- { desc: intel-mac, target: x86_64-apple-darwin, host: macos-12, profile: release, toolchain: stable }
- { desc: intel-mac-dbg, target: x86_64-apple-darwin, host: macos-12, profile: debug, toolchain: stable }
- { desc: arm-mac, target: aarch64-apple-darwin, host: macos-13, profile: release, toolchain: stable }
- { desc: arm-mac-dbg, target: aarch64-apple-darwin, host: macos-13, profile: debug, toolchain: stable }
- { desc: intel-mac, target: x86_64-apple-darwin, host: macos-13, profile: release, toolchain: stable }
- { desc: intel-mac-dbg, target: x86_64-apple-darwin, host: macos-13, profile: debug, toolchain: stable }
- { desc: arm-linux, target: armv7-unknown-linux-gnueabihf, host: ubuntu-22.04, profile: release, toolchain: stable }
- { desc: arm-linux-dbg, target: armv7-unknown-linux-gnueabihf, host: ubuntu-22.04, profile: debug, toolchain: stable }
- { desc: arm-linux-static, target: armv7-unknown-linux-musleabihf, host: ubuntu-22.04, profile: release, toolchain: stable }
Expand Down
2 changes: 1 addition & 1 deletion src/http_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ mod tests {

#[cfg(feature = "nightly")]
mod benchmark {
extern crate test;
extern crate test ;
use crate::config::CredentialsStore;
use crate::http_server::tests::authentication::{DEFAULT_HASH, SECRET_HASH};
use crate::http_server::{authenticate, AUTHENTICATION_CACHE};
Expand Down

0 comments on commit 3677f92

Please sign in to comment.