Mirror von
https://github.com/Chaoscaot/schemsearch
synchronisiert 2024-11-08 13:20:13 +01:00
36 Zeilen
708 B
YAML
36 Zeilen
708 B
YAML
name: Master Build
|
|
|
|
on:
|
|
push:
|
|
branches: [ "master" ]
|
|
pull_request:
|
|
branches: [ "master" ]
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Build
|
|
run: cargo build --verbose
|
|
- name: Run tests
|
|
run: cargo test --verbose -p schemsearch-lib
|
|
build-release:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Build
|
|
run: cargo build --verbose --release -p schemsearch-cli
|
|
- name: Upload a Build Artifact
|
|
uses: actions/upload-artifact@v3.1.2
|
|
with:
|
|
name: schemsearch-cli
|
|
path: target/release/schemsearch-cli
|