diff --git a/.github/scripts/debian-prerequisites.sh b/.github/scripts/debian-prerequisites.sh new file mode 120000 index 0000000..f070b0a --- /dev/null +++ b/.github/scripts/debian-prerequisites.sh @@ -0,0 +1 @@ +./ubuntu-prerequisites.sh \ No newline at end of file diff --git a/.github/scripts/ubuntu-prerequisites.sh b/.github/scripts/ubuntu-prerequisites.sh new file mode 100755 index 0000000..52991b4 --- /dev/null +++ b/.github/scripts/ubuntu-prerequisites.sh @@ -0,0 +1,8 @@ +#/usr/env bash +set -euo pipefail + +apt-get update +apt-get install -y curl git protobuf-compiler + +curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y +. "$HOME/.cargo/env" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0e264f9..c4d54c3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,13 +12,17 @@ on: jobs: ci: runs-on: ubuntu-latest - concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} - cancel-in-progress: true - container: ubuntu:24.04 + strategy: + matrix: + container: ["ubuntu:24.04", "debian:12:5"] + container: ${{ matrix.container }} steps: - uses: actions/checkout@v3 + - name: Run the prerequisites script + run: | + ./.github/scripts/$(echo "${{ matrix.container }}" | cut -d':' -f1)-prerequisites.sh + # - name: Rust compilation prerequisites # run: | # sudo apt update