-
-
Notifications
You must be signed in to change notification settings - Fork 8
68 lines (57 loc) · 1.52 KB
/
build.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Build
on:
push:
branches:
- master
pull_request:
branches:
- master
schedule:
- cron: '0 * * * *'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
# packages to build per section
PER_SECTION: 50
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
# PER_SECTION * JOBS's must exceed the total recipes, or else it won't
# built the later packages!
section: [1, 2, 3, 4, 5, 6]
steps:
- uses: jcs090218/setup-emacs@master
with:
version: 30.1
- uses: emacs-eask/setup-eask@master
with:
version: 'snapshot'
- uses: actions/checkout@v4
- name: Expose section info
run: |
echo "ELPA_SECTION=${{ matrix.section }}" >> $GITHUB_ENV
echo "PER_SECTION=${{ env.PER_SECTION }}" >> $GITHUB_ENV
- name: Build packages
continue-on-error: true
run: make build_packages
- name: Set git config
run: |
git config user.name github-actions
git config user.email github-actions@github.com
- name: Commit updated packages
continue-on-error: true
run: |
git pull --rebase --autostash
git add .
git commit -m "Update packages in section ${{ matrix.section }}"
- name: Push updated packages
continue-on-error: true
uses: jcs090218/github-push-action@master
with:
branch: master
rebase: true
retry: ${{ strategy.job-total }}