feat: update dependencies #43
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check Build Pull Request | |
on: | |
pull_request: | |
branches: [master] | |
workflow_dispatch: | |
inputs: | |
name: | |
description: "Name" | |
required: true | |
default: "check pull request" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: Check Pull Request | |
steps: | |
- name: 📥 Checkout | |
uses: actions/checkout@v4 | |
- name: ⚡️ Rust Cache | |
uses: Swatinem/rust-cache@v2 | |
with: | |
cache-on-failure: true | |
- name: ⚡️ Shared Compilation Cache | |
uses: mozilla-actions/[email protected] | |
- name: 📦 Install Dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y build-essential cmake musl-dev libssl-dev pkg-config libpq-dev | |
- name: 🛠️ Set up Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: 1.76 | |
override: true | |
target: x86_64-unknown-linux-musl | |
- name: 📦 Install Cargo Binary install | |
uses: cargo-bins/cargo-binstall@main | |
- name: 📦 Install cross | |
run: cargo binstall --force cross | |
- name: 🚀 Build | |
env: | |
SCCACHE_GHA_ENABLED: "true" | |
RUSTC_WRAPPER: "sccache" | |
RUSTFLAGS: "-C target-feature=-crt-static -C linker=musl-gcc" | |
run: | | |
cross build --target x86_64-unknown-linux-musl --release |