optimize ci build: use own dockerfile for dependencies + cache for builds #164

Merged
philipp merged 16 commits from own-dockerfile into staging 2024-01-17 22:56:36 +01:00
Showing only changes of commit d0adee74da - Show all commits

View File

@ -1,12 +1,6 @@
name: CI/CD Pipeline
on:
push:
inputs:
rust-version:
type: string
required: false
default: nightly
on: push
env:
CARGO_TARGET: x86_64-unknown-linux-musl
@ -22,9 +16,9 @@ jobs:
- uses: actions/checkout@v3
- name: Run Test DB Script
run: ./test_db.sh
- name: Set up cargo cache
uses: actions/cache@v3
continue-on-error: false
with:
path: |
~/.cargo/bin/
@ -33,7 +27,7 @@ jobs:
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
- name: Build
run: |
cargo build