feather/.github/workflows/guix.yml

76 lines
2.3 KiB
YAML
Raw Normal View History

2023-05-28 14:21:48 +00:00
name: ci/gh-actions/guix
2023-12-06 02:10:35 +00:00
on: [push, pull_request]
2023-05-28 14:21:48 +00:00
jobs:
2023-05-30 15:58:48 +00:00
cache-sources:
2024-08-09 09:16:23 +00:00
runs-on: ubuntu-24.04
2023-05-30 15:58:48 +00:00
steps:
2024-03-13 10:44:29 +00:00
- uses: actions/checkout@v4
2023-05-30 15:58:48 +00:00
with:
fetch-depth: 0
- name: depends sources cache
2023-05-31 00:33:24 +00:00
id: cache
2024-03-13 10:44:29 +00:00
uses: actions/cache@v4
2023-05-30 15:58:48 +00:00
with:
path: contrib/depends/sources
key: sources-${{ hashFiles('contrib/depends/packages/*') }}
- name: download depends sources
2023-05-31 00:33:24 +00:00
if: steps.cache.outputs.cache-hit != 'true'
2023-05-30 15:58:48 +00:00
run: make -C contrib/depends download
2023-05-31 00:33:24 +00:00
build-guix:
2024-08-09 09:16:23 +00:00
runs-on: ubuntu-24.04
2024-03-13 11:14:37 +00:00
needs: [cache-sources]
2023-05-28 14:21:48 +00:00
strategy:
fail-fast: false
matrix:
toolchain:
2024-03-13 10:44:29 +00:00
- target: "x86_64-linux-gnu"
- target: "x86_64-linux-gnu.no-tor-bundle"
- target: "x86_64-linux-gnu.pack"
- target: "aarch64-linux-gnu"
- target: "arm-linux-gnueabihf"
- target: "riscv64-linux-gnu"
- target: "i686-linux-gnu"
- target: "x86_64-w64-mingw32"
- target: "x86_64-w64-mingw32.installer"
- target: "x86_64-apple-darwin"
- target: "arm64-apple-darwin"
name: ${{ matrix.toolchain.target }}
2023-05-28 14:21:48 +00:00
steps:
2024-03-13 10:44:29 +00:00
- uses: actions/checkout@v4
2023-05-28 14:21:48 +00:00
with:
fetch-depth: 0
submodules: recursive
2024-03-13 10:44:29 +00:00
- name: remove bundled packages
run: sudo rm -rf /usr/local
2023-05-28 14:21:48 +00:00
- name: depends sources cache
2024-03-13 10:44:29 +00:00
uses: actions/cache/restore@v4
2023-05-28 14:21:48 +00:00
with:
path: contrib/depends/sources
2023-05-30 15:58:48 +00:00
key: sources-${{ hashFiles('contrib/depends/packages/*') }}
2023-05-28 14:21:48 +00:00
- name: install dependencies
2023-05-31 00:33:24 +00:00
run: sudo apt update; sudo apt -y install guix git ca-certificates
2023-05-28 14:21:48 +00:00
- name: build
2024-08-09 08:03:03 +00:00
run: SUBSTITUTE_URLS='http://bordeaux.guix.gnu.org http://ci.guix.gnu.org' HOSTS="${{ matrix.toolchain.target }}" ./contrib/guix/guix-build
2024-03-13 10:44:29 +00:00
- uses: actions/upload-artifact@v4
2023-05-28 14:21:48 +00:00
with:
2024-03-13 10:44:29 +00:00
name: ${{ matrix.toolchain.target }}
2023-05-28 14:21:48 +00:00
path: |
2024-03-13 10:44:29 +00:00
guix/guix-build-*/output/${{ matrix.toolchain.target }}/*
guix/guix-build-*/logs/${{ matrix.toolchain.target }}/*
bundle-logs:
2024-08-09 09:16:23 +00:00
runs-on: ubuntu-24.04
2024-03-13 10:44:29 +00:00
needs: [build-guix]
steps:
- uses: actions/download-artifact@v4
with:
merge-multiple: true
- uses: actions/upload-artifact@v4
with:
name: "logs"
path: '**/logs/**'