feat: update dependencies #36
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 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install system dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y \ | |
build-essential cmake musl-dev libssl-dev openssl openssl-dev pkg-config libpq-dev | |
- name: Run sccache-cache | |
uses: mozilla-actions/[email protected] | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: 1.76 | |
override: true | |
target: x86_64-unknown-linux-musl | |
- name: Configure sccache env var and set build profile to ephemeral build | |
run: | | |
export RUSTFLAGS="-C target-feature=-crt-static" | |
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV | |
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV | |
echo "RUSTFLAGS="-C target-feature=-crt-static"" >> $GITHUB_ENV | |
- name: Run build | |
uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --target x86_64-unknown-linux-musl --profile=ephemeral-build |