From 1ea9d6afee0d81d0d16cc7a7084f0814b80ed5e9 Mon Sep 17 00:00:00 2001 From: philipp Date: Sun, 18 Feb 2024 16:02:01 +0100 Subject: [PATCH] see cfg location --- .gitea/workflows/action.yml | 18 +++++++++++++++++- Cargo.lock | 13 +++++++------ 2 files changed, 24 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/action.yml b/.gitea/workflows/action.yml index a77549f..1432bf9 100644 --- a/.gitea/workflows/action.yml +++ b/.gitea/workflows/action.yml @@ -15,8 +15,24 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + + - name: Set up cargo cache + uses: actions/cache@v3 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-cargo-release-${{ hashFiles('**/Cargo.lock') }} + restore-keys: ${{ runner.os }}-cargo-release- - - name: Deploy to production + - name: Run + run: | + cargo r --release + + - name: Deploy run: | mkdir -p ~/.ssh ssh-keyscan -H $SSH_HOST >> ~/.ssh/known_hosts diff --git a/Cargo.lock b/Cargo.lock index 555c2a5..4ac55ab 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -26,9 +26,9 @@ dependencies = [ [[package]] name = "anstream" -version = "0.6.11" +version = "0.6.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e2e1ebcb11de5c03c67de28a7df593d32191b44939c482e97702baaaa6ab6a5" +checksum = "96b09b5178381e0874812a9b157f7fe84982617e48f71f4e3235482775e5b540" dependencies = [ "anstyle", "anstyle-parse", @@ -518,22 +518,23 @@ checksum = "c08c74e62047bb2de4ff487b251e4a92e24f48745648451635cec7d591162d9f" [[package]] name = "ring" -version = "0.17.7" +version = "0.17.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "688c63d65483050968b2a8937f7995f443e27041a0f7700aa59b0822aedebb74" +checksum = "c17fa4cb658e3583423e915b9f3acc01cceaee1860e33d59ebae66adc3a2dc0d" dependencies = [ "cc", + "cfg-if", "getrandom", "libc", "spin", "untrusted", - "windows-sys 0.48.0", + "windows-sys 0.52.0", ] [[package]] name = "risp" version = "0.1.0" -source = "git+https://git.hofer.link/philipp/risp.git#2d8314f839c28875db0ef40d996613f787bfe0b4" +source = "git+https://git.hofer.link/philipp/risp.git#fdd3b3cb647eba3ad66e8e001851f646f2b2f632" dependencies = [ "clap", "directories",