Move dependency installation into its own action #2
2 changed files with 12 additions and 3 deletions
11
.forgejo/actions/install-system-libraries/action.yml
Normal file
11
.forgejo/actions/install-system-libraries/action.yml
Normal file
|
@ -0,0 +1,11 @@
|
|||
---
|
||||
name: Install System Libraries
|
||||
description: Installs the system libraries necessary to build the project
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- name: Install system libraries
|
||||
shell: bash
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get -y install libasound2-dev libudev-dev libwayland-dev
|
|
@ -28,8 +28,6 @@ jobs:
|
|||
with:
|
||||
components: clippy
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get -y install libasound2-dev libudev-dev libwayland-dev
|
||||
uses: ./.forgejo/actions/install-system-libraries
|
||||
- name: Run Clippy
|
||||
run: cargo clippy -- -D warnings
|
Loading…
Add table
Add a link
Reference in a new issue