Skip to content

Commit

Permalink
fixing build on windows, and adding caching
Browse files Browse the repository at this point in the history
Signed-off-by: danbugs <[email protected]>
  • Loading branch information
danbugs committed Dec 24, 2023
1 parent 9919395 commit 3d1c8c2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ jobs:

steps:
- uses: actions/checkout@v2

- name: Cache Rust dependencies
uses: Swatinem/rust-cache@v2

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
Expand All @@ -51,6 +55,11 @@ jobs:
override: true
target: ${{ matrix.target }}

# Additional step for Windows only
- if: matrix.os == 'windows-latest'
name: Install PostgreSQL
run: choco install postgresql --params '/Password:postgres' --no-progress

- name: Build
run: cargo build --release --target ${{ matrix.target }}

Expand Down
7 changes: 1 addition & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,7 @@ SMITHE ?= target/release/smithe
# CARGO
.PHONY: improve
improve:
cargo clippy --all --all-targets --all-features -- -D warnings
cargo fmt --all

.PHONY: clippy-fmt
clippy-fmt: # Runs clippy and fmt on all packages, except frontend because clippy gets confused by in-code HTML
cargo clippy -p smithe_backend -p smithe_database -p smithe_lib -p startgg
cargo clippy --fix -p smithe_backend -p smithe_database -p smithe_lib -p startgg
cargo fmt --all

.PHONY: test
Expand Down

0 comments on commit 3d1c8c2

Please sign in to comment.