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 +...