-
Notifications
You must be signed in to change notification settings - Fork 6
41 lines (39 loc) · 1.18 KB
/
cron-build-cache.yml
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
35
36
37
38
39
40
41
name: Cron Update
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 5'
jobs:
build-cache:
name: Build cache
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v4
- name: Install Python
uses: actions/setup-python@v5
- name: Install Nox
run: python -m pip install nox
- name: Set up QEMU
uses: docker/setup-qemu-action@v3.2.0
with:
platforms: 'arm,arm64,ppc64le,s390x,riscv64'
- name: Build cache
run: |
EXIT_CODE=0
if ! nox -s run -- --force-rolling --continue-on-error --machine x86_64; then
EXIT_CODE=1
fi
if ! git diff --exit-code --quiet cache; then
if ! nox -s run -- --force-rolling --continue-on-error --machine i686 aarch64 ppc64le s390x armv7l riscv64; then
EXIT_CODE=1
fi
fi
exit $EXIT_CODE
- name: Create Pull Request
if: github.ref == 'refs/heads/master' && always()
uses: peter-evans/create-pull-request@v7
with:
commit-message: auto-update cache and/or README.rst
title: '[Bot] auto-update cache and/or README.rst'
branch: create-pull-request/cron