Skip to content

Wip: build pipeline #109

Wip: build pipeline

Wip: build pipeline #109

Workflow file for this run

name: Build 🪛
on:
pull_request:
push:
paths:
- 'src/**'
- Cargo.toml
- Cargo.lock
- .github/workflows/build.yml
branches:
- '**'
env:
CARGO_TERM_COLOR: always
jobs:
test:
name: Test
strategy:
matrix:
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
- os: macOS-latest
target: x86_64-apple-darwin
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
targets: ${{ matrix.target }}
- name: Setup dependencies (Ubuntu)
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get -qq update
sudo apt-get -qq install musl-dev musl-tools pkg-config make
- name: Setup dependencies (macOS)
if: matrix.os == 'macOS-latest'
run: |
brew update
brew install pkg-config make openssl@3
echo "OPENSSL_DIR=$(brew --prefix openssl@3)" >> $GITHUB_ENV
echo "PKG_CONFIG_PATH=$(brew --prefix openssl@3)/lib/pkgconfig" >> $GITHUB_ENV
- name: Run build
run: cargo build --release --locked --target ${{ matrix.target }}