fix rust setup in docker

This commit is contained in:
Brendan McDevitt 2025-03-27 19:52:04 -05:00
parent c0ee97a87b
commit 561a4b3039

View file

@ -1,4 +1,4 @@
name: Daily Feed Update oname: Daily Feed Update
on: on:
schedule: schedule:
- cron: '0 1 * * *' - cron: '0 1 * * *'
@ -37,24 +37,22 @@ jobs:
git clone git@git.mcdevitt.tech:bpmcdevitt/github_poc_collector.git . git clone git@git.mcdevitt.tech:bpmcdevitt/github_poc_collector.git .
- name: Setup Rust - name: Setup Rust
uses: actions-rs/toolchain@v1 run: |
with: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
toolchain: stable source "$HOME/.cargo/env"
override: true rustup default stable
rustc --version
cargo --version
- name: Cache Cargo dependencies - name: Cache Cargo dependencies
uses: actions/cache@v3 run: |
with: mkdir -p ~/.cargo/registry
path: | mkdir -p ~/.cargo/git
~/.cargo/registry mkdir -p target
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Run recent feed update - name: Run recent feed update
run: | run: |
source "$HOME/.cargo/env"
cargo run -- --feed recent cargo run -- --feed recent
- name: Commit and push results - name: Commit and push results