Skip to content

Print version number on start #8

Print version number on start

Print version number on start #8

Workflow file for this run

name: Rust
on:
push:
branches: [main]
pull_request:
branches: [main]
release:
types: [created]
env:
CARGO_TERM_COLOR: always
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt install -y libdbus-1-dev pkg-config
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
release:
needs: test
runs-on: ubuntu-latest
if: github.event_name == 'release'
steps:
- uses: actions/checkout@v4
- name: Compile and release
uses: rust-build/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
PRE_BUILD: pre-build.sh
RUSTTARGET: x86_64-unknown-linux-musl
TOOLCHAIN_VERSION: stable
EXTRA_FILES: "README.md LICENSE"