Skip to content

Commit

Permalink
Fixed CI and DbEnum
Browse files Browse the repository at this point in the history
  • Loading branch information
gammelalf committed Sep 5, 2023
1 parent 9e6606c commit d874d59
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 80 deletions.
23 changes: 7 additions & 16 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,27 +33,18 @@ jobs:
rustup component add clippy
cargo install clippy-sarif sarif-fmt cargo-deny
- name: Build rorm with tokio-rustls
run: cargo build -p rorm -F tokio-rustls
- name: Build rorm with tokio
run: cargo build -p rorm -F tokio

- name: Build rorm with tokio-native-tls
run: cargo build -p rorm -F tokio-native-tls

- name: Build rorm with async-std-rustls
run: cargo build -p rorm -F async-std-rustls

- name: Build rorm with async-std-native-tls
run: cargo build -p rorm -F async-std-native-tls

- name: Build rorm with actix-rustls
run: cargo build -p rorm -F actix-rustls

- name: Build rorm with actix-native-tls
run: cargo build -p rorm -F actix-native-tls
- name: Build rorm with async-std
run: cargo build -p rorm -F async-std

- name: Run cargo deny check
run: cargo deny check --hide-inclusion-graph

- name: Run cargo test
run: cargo test --all

- name: Run rust-clippy
run: cargo clippy --workspace --message-format=json | clippy-sarif | tee rust-clippy-results.sarif | sarif-fmt
continue-on-error: true
Expand Down
35 changes: 4 additions & 31 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,35 +28,8 @@ jobs:
- uses: Swatinem/rust-cache@v2

- name: Install dependencies
run: |
rustup component add clippy
cargo install clippy-sarif sarif-fmt
- name: Build rorm with tokio
run: cargo build -p rorm -F tokio

- name: Build rorm with tokio-rustls
run: cargo build -p rorm -F tokio-rustls

- name: Build rorm with tokio-native-tls
run: cargo build -p rorm -F tokio-native-tls

- name: Build rorm with async-std-rustls
run: cargo build -p rorm -F async-std-rustls

- name: Build rorm with async-std-native-tls
run: cargo build -p rorm -F async-std-native-tls

- name: Build rorm with actix-rustls
run: cargo build -p rorm -F actix-rustls

- name: Build rorm with actix-native-tls
run: cargo build -p rorm -F actix-native-tls

- name: Run rust-clippy
run: cargo clippy --workspace --message-format=json | clippy-sarif | tee rust-clippy-results.sarif | sarif-fmt
continue-on-error: true

- name: Upload clippy analysis results to GitHub
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: rust-clippy-results.sarif
wait-for-processing: true
- name: Build rorm with async-std
run: cargo build -p rorm -F async-std
35 changes: 4 additions & 31 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,35 +28,8 @@ jobs:
- uses: Swatinem/rust-cache@v2

- name: Install dependencies
run: |
rustup component add clippy
cargo install clippy-sarif sarif-fmt
- name: Build rorm with tokio
run: cargo build -p rorm -F tokio

- name: Build rorm with tokio-rustls
run: cargo build -p rorm -F tokio-rustls

- name: Build rorm with tokio-native-tls
run: cargo build -p rorm -F tokio-native-tls

- name: Build rorm with async-std-rustls
run: cargo build -p rorm -F async-std-rustls

- name: Build rorm with async-std-native-tls
run: cargo build -p rorm -F async-std-native-tls

- name: Build rorm with actix-rustls
run: cargo build -p rorm -F actix-rustls

- name: Build rorm with actix-native-tls
run: cargo build -p rorm -F actix-native-tls

- name: Run rust-clippy
run: cargo clippy --workspace --message-format=json | clippy-sarif | tee rust-clippy-results.sarif | sarif-fmt
continue-on-error: true

- name: Upload clippy analysis results to GitHub
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: rust-clippy-results.sarif
wait-for-processing: true
- name: Build rorm with async-std
run: cargo build -p rorm -F async-std
4 changes: 2 additions & 2 deletions rorm-macro/src/generate/db_enum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ pub fn generate_db_enum(parsed: &ParsedDbEnum) -> TokenStream {
::rorm::new_converting_decoder!(
#[doc(hidden)]
#decoder,
|value: ::rorm::choice::Choice| -> #ident {
|value: ::rorm::db::choice::Choice| -> #ident {
let value: String = value.0;
match value.as_str() {
#(
Expand All @@ -50,7 +50,7 @@ pub fn generate_db_enum(parsed: &ParsedDbEnum) -> TokenStream {
}
);
impl ::rorm::internal::field::as_db_type::AsDbType for #ident {
type Primitive = ::rorm::choice::Choice;
type Primitive = ::rorm::db::choice::Choice;
type DbType = ::rorm::internal::hmr::db_type::Choices;

const IMPLICIT: Option<::rorm::internal::hmr::annotations::Annotations> = Some({
Expand Down

0 comments on commit d874d59

Please sign in to comment.