mirror of
https://github.com/DefectingCat/candy
synced 2025-07-15 08:41:35 +00:00
60 lines
1.4 KiB
YAML
60 lines
1.4 KiB
YAML
name: Candy macOS x86
|
|
|
|
on:
|
|
push:
|
|
branches: [""]
|
|
pull_request:
|
|
branches: [""]
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: ["self-hosted", "macos-x86"]
|
|
steps:
|
|
- uses: actions/cache@v4
|
|
with:
|
|
path: |
|
|
~/.cargo/bin/
|
|
~/.cargo/registry/index/
|
|
~/.cargo/registry/cache/
|
|
~/.cargo/git/db/
|
|
target/
|
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
|
- uses: actions/checkout@v4
|
|
- name: Clippy check
|
|
run: make lint
|
|
|
|
test:
|
|
runs-on: ["self-hosted", "macos-x86"]
|
|
steps:
|
|
- uses: actions/cache@v4
|
|
with:
|
|
path: |
|
|
~/.cargo/bin/
|
|
~/.cargo/registry/index/
|
|
~/.cargo/registry/cache/
|
|
~/.cargo/git/db/
|
|
target/
|
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
|
- uses: actions/checkout@v4
|
|
- name: Unit test
|
|
run: make test
|
|
|
|
build:
|
|
runs-on: ["self-hosted", "macos-x86"]
|
|
steps:
|
|
- uses: actions/cache@v4
|
|
with:
|
|
path: |
|
|
~/.cargo/bin/
|
|
~/.cargo/registry/index/
|
|
~/.cargo/registry/cache/
|
|
~/.cargo/git/db/
|
|
target/
|
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
|
- uses: actions/checkout@v4
|
|
- name: Build release
|
|
run: make release
|