Skip to content

Commit

Permalink
ci: update ci for the binary application
Browse files Browse the repository at this point in the history
  • Loading branch information
pythonbrad committed May 3, 2023
1 parent c13eb80 commit 1a0593d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/actions/install_deps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: "Install_deps"
description: "Installs the dependencies and updates the system"

runs:
using: "composite"
steps:
- name: Install dependencies
run: |
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
sudo apt-get update -q -y && sudo apt-get upgrade -y
sudo apt-get install -y libxdo-dev libxtst-dev libevdev-dev
4 changes: 4 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: ./.github/actions/install_deps
- uses: actions/checkout@v3
- name: Add clippy
uses: actions-rs/toolchain@v1.0.6
Expand All @@ -29,6 +30,7 @@ jobs:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: ./.github/actions/install_deps
- uses: actions/checkout@v3
- name: Add rustfmt
uses: actions-rs/toolchain@v1.0.6
Expand All @@ -44,6 +46,7 @@ jobs:
name: Build
runs-on: ubuntu-latest
steps:
- uses: ./.github/actions/install_deps
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
- run: cargo build --all-features --verbose
Expand All @@ -52,6 +55,7 @@ jobs:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: ./.github/actions/install_deps
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
- run: |
Expand Down

0 comments on commit 1a0593d

Please sign in to comment.