1919 CARGO_TERM_COLOR : always
2020 REGISTRY_USERNAME : lovasoa
2121 REGISTRY_IMAGE : lovasoa/sqlpage
22+ CARGO_INCREMENTAL : 0
2223
2324jobs :
2425 compile_and_lint :
@@ -27,10 +28,16 @@ jobs:
2728 - uses : actions/checkout@v4
2829 - run : npm ci
2930 - run : npm test
30- - name : Set up cargo cache
31- uses : Swatinem/rust- cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6
31+ - name : Cache Cargo registry and target
32+ uses : actions/ cache@v4
3233 with :
33- shared-key : rust-sqlpage-proj-test
34+ path : |
35+ ~/.cargo/registry
36+ ~/.cargo/git
37+ target
38+ key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
39+ restore-keys : |
40+ ${{ runner.os }}-cargo-
3441 - run : cargo fmt --all -- --check
3542 - run : cargo clippy --all-targets --all-features -- -D warnings
3643 - run : cargo test --features odbc-static
@@ -64,11 +71,16 @@ jobs:
6471 db_url : " Driver=Oracle 21 ODBC driver;Dbq=//127.0.0.1:1521/FREEPDB1;Uid=root;Pwd=Password123!"
6572 steps :
6673 - uses : actions/checkout@v4
67- - name : Set up cargo cache
68- uses : Swatinem/rust- cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6
74+ - name : Cache Cargo registry and target
75+ uses : actions/ cache@v4
6976 with :
70- shared-key : rust-sqlpage-proj-test
71- save-if : false
77+ path : |
78+ ~/.cargo/registry
79+ ~/.cargo/git
80+ target
81+ key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
82+ restore-keys : |
83+ ${{ runner.os }}-cargo-
7284 - name : Install PostgreSQL ODBC driver
7385 if : matrix.setup_odbc
7486 run : sudo apt-get install -y odbc-postgresql
@@ -99,8 +111,16 @@ jobs:
99111 runs-on : windows-latest
100112 steps :
101113 - uses : actions/checkout@v4
102- - name : Set up cargo cache
103- uses : Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6
114+ - name : Cache Cargo registry and target
115+ uses : actions/cache@v4
116+ with :
117+ path : |
118+ ~/.cargo/registry
119+ ~/.cargo/git
120+ target
121+ key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
122+ restore-keys : |
123+ ${{ runner.os }}-cargo-
104124 - name : Check port usage
105125 run : netstat -bano
106126 - run : cargo test
0 commit comments