From e9cca746ca386df4c1e84b989d3f543f4b16e100 Mon Sep 17 00:00:00 2001 From: "Artyom V. Poptsov" Date: Wed, 20 Dec 2023 08:40:19 +0300 Subject: [PATCH] .github/workflows/guix.yml: New CI workflow --- .github/workflows/guix.yml | 60 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 .github/workflows/guix.yml diff --git a/.github/workflows/guix.yml b/.github/workflows/guix.yml new file mode 100644 index 0000000..0ce5abf --- /dev/null +++ b/.github/workflows/guix.yml @@ -0,0 +1,60 @@ +--- +# File : guix.yml + +name: Guix/Guile 3.0 + +on: + push: + branches: + - master + - wip-github-ci-guix-workflow + pull_request: + branches: + - master + +jobs: + x86_64-linux-gnu: + runs-on: "ubuntu-latest" + steps: + - name: "Guix cache" + uses: "actions/cache@v3" + with: + path: "~/.cache/guix" + # use a key that (almost) never matches + key: "guix-cache-${{ github.sha }}" + restore-keys: | + guix-cache- + - name: "Install Guix" + uses: "PromyLOPh/guix-install-action@v1" + - name: "Ensure no locale warning" + run: | + test -z "$(guix --version 2>&1 >/dev/null)" + - name: "Checkout repository" + uses: "actions/checkout@v3" + - name: "Build project guile-udev" + run: | + guix build --file=guix.scm guile-udev + aarch64-linux-gnu: + runs-on: "ubuntu-latest" + steps: + - name: "Guix cache" + uses: "actions/cache@v3" + with: + path: "~/.cache/guix" + # use a key that (almost) never matches + key: "guix-cache-${{ github.sha }}" + restore-keys: | + guix-cache- + - name: "Install Guix" + uses: "PromyLOPh/guix-install-action@v1" + - name: "Ensure no locale warning" + run: | + test -z "$(guix --version 2>&1 >/dev/null)" + - name: "Checkout repository" + uses: "actions/checkout@v3" + - name: "Build project guile-udev" + run: | + guix build --target=aarch64-linux-gnu --file=guix.scm guile-udev + +# End of guix.yml +...