From 3d73710feac7905a22a8221dced2de9e120c612f Mon Sep 17 00:00:00 2001 From: harksin Date: Thu, 15 Jun 2023 18:07:41 +0200 Subject: [PATCH 1/3] add sccache --- .github/workflows/ci.yaml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ea42b37..eeb89ea 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -29,6 +29,9 @@ jobs: "dashboard", "notification", ] + env: + SCCACHE_GHA_ENABLED: "true" + RUSTC_WRAPPER: "sccache" steps: - uses: actions/checkout@v3 @@ -37,12 +40,13 @@ jobs: with: toolchain: stable profile: default + components: clippy, rustfmt - - name: Install clippy - run: rustup component add clippy + - name: Run sccache-cache + uses: mozilla-actions/sccache-action@v0.0.3 - - name: Install rustfmt - run: rustup component add rustfmt + - name: Format + run: cargo fmt -p ${{ matrix.component }} -- --check --config format_code_in_doc_comments=true - name: Build run: cargo build -p ${{ matrix.component }} @@ -51,7 +55,4 @@ jobs: run: cargo test -p ${{ matrix.component }} - name: Lint - run: cargo clippy -p ${{ matrix.component }} --no-deps -- -D warnings - - - name: Format - run: cargo fmt -p ${{ matrix.component }} -- --check --config format_code_in_doc_comments=true + run: cargo clippy -p ${{ matrix.component }} --no-deps -- -D warnings \ No newline at end of file From 689bff6bf3f658f836620461813f8f60921ed18c Mon Sep 17 00:00:00 2001 From: harksin Date: Thu, 15 Jun 2023 18:18:38 +0200 Subject: [PATCH 2/3] test --- billing/src/models/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/billing/src/models/mod.rs b/billing/src/models/mod.rs index e794142..c62ed1b 100644 --- a/billing/src/models/mod.rs +++ b/billing/src/models/mod.rs @@ -28,6 +28,7 @@ pub struct Billing { impl From for Billable { fn from(persistence: BillableSQL) -> Self { + println!("test"); Billable { id: persistence.id.to_string().into(), name: persistence.name, From 22b9ba5918b813b176635868985513067e88017d Mon Sep 17 00:00:00 2001 From: harksin Date: Thu, 15 Jun 2023 18:35:59 +0200 Subject: [PATCH 3/3] rust cache --- .github/workflows/ci.yaml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index eeb89ea..89c7242 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -29,9 +29,9 @@ jobs: "dashboard", "notification", ] - env: - SCCACHE_GHA_ENABLED: "true" - RUSTC_WRAPPER: "sccache" + # env: + # SCCACHE_GHA_ENABLED: "true" + # RUSTC_WRAPPER: "sccache" steps: - uses: actions/checkout@v3 @@ -42,8 +42,10 @@ jobs: profile: default components: clippy, rustfmt - - name: Run sccache-cache - uses: mozilla-actions/sccache-action@v0.0.3 + # - name: Run sccache-cache + # uses: mozilla-actions/sccache-action@v0.0.3 + + - uses: Swatinem/rust-cache@v2 - name: Format run: cargo fmt -p ${{ matrix.component }} -- --check --config format_code_in_doc_comments=true