Skip to content

Commit

Permalink
Split github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dfaust committed Nov 24, 2024
1 parent 83fd91d commit 576fe2c
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 39 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Release

on:
release:
types: [published]

env:
CARGO_TERM_COLOR: always

jobs:
release:
runs-on: ubuntu-latest
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"
39 changes: 0 additions & 39 deletions .github/workflows/rust.yml

This file was deleted.

22 changes: 22 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Test

on:
push:
branches: [main]
pull_request:
branches: [main]

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

0 comments on commit 576fe2c

Please sign in to comment.