diff --git a/.forgejo/actions/install-system-libraries/action.yml b/.forgejo/actions/install-system-libraries/action.yml new file mode 100644 index 0000000..32dea86 --- /dev/null +++ b/.forgejo/actions/install-system-libraries/action.yml @@ -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 diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/check.yaml similarity index 85% rename from .forgejo/workflows/build.yaml rename to .forgejo/workflows/check.yaml index defe7ab..8a0be7f 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/check.yaml @@ -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