Skip to content

Commit

Permalink
Build binary
Browse files Browse the repository at this point in the history
  • Loading branch information
dfaust committed Nov 24, 2024
1 parent 74db42f commit b82e9de
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@ env:
CARGO_TERM_COLOR: always

jobs:
build:

test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Install dependencies
Expand All @@ -22,3 +20,17 @@ jobs:
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
release:
needs: test
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"
3 changes: 3 additions & 0 deletions pre-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

apk add dbus-dev

0 comments on commit b82e9de

Please sign in to comment.