Files
voice-typing/.gitea/workflows/default.yaml
heimoshuiyu e3669fe3f8
Some checks failed
Build / build (push) Failing after 6m46s
add workflow
2024-11-10 01:22:52 +08:00

46 lines
959 B
YAML

name: Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install build dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential pkg-config
- uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Cache dependencies
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Build
run: cargo build --release
- name: Rename binary
run: mv target/release/audio-typing target/release/voice-typing
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: voice-typing
path: target/release/voice-typing