-
-
Notifications
You must be signed in to change notification settings - Fork 278
34 lines (33 loc) · 899 Bytes
/
Copy pathbuild.yml
File metadata and controls
34 lines (33 loc) · 899 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Build
on:
pull_request:
concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 120
strategy:
fail-fast: false
matrix:
target:
- jekyll
- pages
arch:
- amd64
- arm64
steps:
- uses: actions/checkout@v7
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v4
- name: Build
run: |
image="jekyll/jekyll:latest"
[ "${{ matrix.target }}" = "pages" ] && image="jekyll/jekyll:pages"
docker buildx bake "${{ matrix.target }}" --load \
--set "${{ matrix.target }}.platform=linux/${{ matrix.arch }}" \
--set "${{ matrix.target }}.tags=$image"
- run: script/test "${{ matrix.target }}" "${{ matrix.arch }}"