Skip to content

Commit

Permalink
ci: cache rust dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
KKould committed Nov 10, 2024
1 parent d288c2e commit bb7a38d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ jobs:
- name: Install Protoc
uses: arduino/setup-protoc@v2

- name: cache dependencies
uses: Swatinem/rust-cache@v2

# `cargo check` command here will use installed `nightly`
# as it is set as an "override" for current directory

Expand Down Expand Up @@ -58,6 +61,9 @@ jobs:
override: true
components: rustfmt, clippy

- name: cache dependencies
uses: Swatinem/rust-cache@v2

# `cargo check` command here will use installed `nightly`
# as it is set as an "override" for current directory

Expand All @@ -79,6 +85,9 @@ jobs:
override: true
components: rustfmt, clippy

- name: cache dependencies
uses: Swatinem/rust-cache@v2

- name: Install Protoc
uses: arduino/setup-protoc@v2

Expand Down
2 changes: 1 addition & 1 deletion src/macros/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ macro_rules! scala_function {
#[macro_export]
macro_rules! table_function {
($struct_name:ident::$function_name:ident($($arg_ty:expr),*) -> [$($output_name:ident: $output_ty:expr),*] => $closure:expr) => {
static $function_name: ::std::sync::LazyLock<::fnck_sql::catalog::table::TableCatalog> = LazyLock::new(|| {
static $function_name: ::std::sync::LazyLock<::fnck_sql::catalog::table::TableCatalog> = ::std::sync::LazyLock::new(|| {
let mut columns = Vec::new();

$({
Expand Down

0 comments on commit bb7a38d

Please sign in to comment.