mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-02 21:00:55 +00:00
35 lines
1.3 KiB
YAML
35 lines
1.3 KiB
YAML
name: client
|
|
on: [push, pull_request]
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
platform:
|
|
- { os: linux, arch: x86_64, on: ubuntu-latest, deps: linux }
|
|
- { os: linux, arch: aarch64, on: ubuntu-latest, deps: linux }
|
|
- { os: darwin, arch: x86_64, on: macos-14, deps: darwin }
|
|
- { os: darwin, arch: aarch64, on: macos-14, deps: darwin }
|
|
- { os: freebsd, arch: x86_64, on: ubuntu-latest, deps: linux }
|
|
- { os: windows, arch: x86_64, on: windows-latest, deps: windows }
|
|
env:
|
|
TARGET_OS: "${{ matrix.platform.os }}"
|
|
TARGET_ARCH: "${{ matrix.platform.arch }}"
|
|
runs-on: "${{ matrix.platform.on }}"
|
|
name: build ${{ matrix.platform.os }}-${{ matrix.platform.arch }}
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
if: ${{ matrix.platform.os != 'darwin' }}
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
targets: "${{ matrix.platform.arch }}-apple-darwin"
|
|
if: ${{ matrix.platform.os == 'darwin' }}
|
|
- uses: homebrew/actions/setup-homebrew@master
|
|
if: ${{ matrix.platform.os == 'darwin' }}
|
|
- run: ./hack/ci/install-${{ matrix.platform.deps }}-deps.sh
|
|
- run: ./hack/build/cargo.sh build --bin kratactl
|