diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 7c78d9d..fb44fa7 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -19,12 +19,7 @@ jobs: - name: Rustup Update run: rustup update - name: OS Deps - run: "sudo apt-get update \ - && sudo apt-get install \ - g++ pkg-config libx11-dev \ - libasound2-dev libudev-dev \ - libwayland-dev \ - -y" + run: ./scripts/os.sh - uses: Swatinem/rust-cache@v2 - name: Tests run: ./scripts/ci.sh diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5c30cf8..a9987da 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,6 +5,5 @@ rust-latest: stage: build image: rust:latest script: - - apt-get update - - apt-get install g++ pkg-config libx11-dev libasound2-dev libudev-dev libwayland-dev -y + - ./scripts/os.sh - ./scripts/ci.sh diff --git a/scripts/os.sh b/scripts/os.sh new file mode 100755 index 0000000..8f100fe --- /dev/null +++ b/scripts/os.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +sudo apt-get update \ + && sudo apt-get install g++ \ + pkg-config libx11-dev \ + libasound2-dev libudev-dev \ + libwayland-dev -y