Try moving dependency installation into its own action
This commit is contained in:
parent
8a78c8a6b8
commit
8f7d09318a
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:
|
with:
|
||||||
components: clippy
|
components: clippy
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: ./.forgejo/actions/install-system-libraries
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get -y install libasound2-dev libudev-dev libwayland-dev
|
|
||||||
- name: Run Clippy
|
- name: Run Clippy
|
||||||
run: cargo clippy -- -D warnings
|
run: cargo clippy -- -D warnings
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue