Skip to content

Commit

Permalink
ci: use action for deps
Browse files Browse the repository at this point in the history
  • Loading branch information
buxx committed Jul 17, 2023
1 parent 8d3e434 commit cb1c72a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
7 changes: 7 additions & 0 deletions .github/actions/install-dependencies.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: 'Install dependencies'
description: 'Install project OS dependencies (according using Ubuntu)'
runs:
using: "composite"
steps:
- run: sudo apt-get install -y libasound2-dev libfontconfig-dev libudev-dev libzmq3-dev
shell: bash
14 changes: 4 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ jobs:
name: Check
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: sudo apt-get install -y libasound2-dev libfontconfig-dev libudev-dev libzmq3-dev
- uses: actions/checkout@v2
- uses: ./.github./actions/install-dependencies
- uses: actions-rs/toolchain@v1
with:
profile: minimal
Expand All @@ -23,9 +22,8 @@ jobs:
name: Test Suite
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: sudo apt-get install -y libasound2-dev libfontconfig-dev libudev-dev libzmq3-dev
- uses: actions/checkout@v2
- uses: ./.github./actions/install-dependencies
- uses: actions-rs/toolchain@v1
with:
profile: minimal
Expand All @@ -39,9 +37,8 @@ jobs:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: sudo apt-get install -y libasound2-dev libfontconfig-dev libudev-dev libzmq3-dev
- uses: actions/checkout@v2
- uses: ./.github./actions/install-dependencies
- uses: actions-rs/toolchain@v1
with:
profile: minimal
Expand All @@ -56,12 +53,9 @@ jobs:
clippy:
name: Clippy
runs-on: ubuntu-latest
# TODO : be clippy compliant
continue-on-error: true
steps:
- name: Install dependencies
run: sudo apt-get install -y libasound2-dev libfontconfig-dev libudev-dev libzmq3-dev
- uses: actions/checkout@v2
- uses: ./.github./actions/install-dependencies
- uses: actions-rs/toolchain@v1
with:
profile: minimal
Expand Down

0 comments on commit cb1c72a

Please sign in to comment.