From 1011dfdc57132ebed302ccf80c491b89114ea935 Mon Sep 17 00:00:00 2001 From: yannickreiss Date: Tue, 17 Dec 2024 07:35:58 +0100 Subject: [PATCH] Actions --- .gitea/workflows/test.yaml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .gitea/workflows/test.yaml diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml new file mode 100644 index 0000000..996edd6 --- /dev/null +++ b/.gitea/workflows/test.yaml @@ -0,0 +1,38 @@ +name: Alire installation and checkup +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + os: [ubuntu-20.04] + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Update system + run: | + apt-get update -qy + + - name: Install dependencies + run: | + apt-get install -y wget gprbuild gnat git curl unzip + + - name: setup alire + run: | + if [ "$(uname -m)" == "x86_64" ]; then + wget -O alr.zip https://github.com/alire-project/alire/releases/download/v2.0.2/alr-2.0.2-bin-x86_64-linux.zip + unzip alr.zip + else + wget -O alr https://git.nickr.eu/yannickreiss/alire/raw/branch/main/aarch64/alr + mv alr /bin/alr + fi + chmod +x /bin/alr + + - name: build project + run: | + /bin/alr -n build +