forked from jcs-emacs/jcs-emacs
-
Notifications
You must be signed in to change notification settings - Fork 0
119 lines (102 loc) · 2.68 KB
/
startup.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
name: Startup
on:
push:
branches:
- master
paths:
- '**.yml'
- '**.el'
- lisp/**
- modules/**
- site-lisp/**
pull_request:
branches:
- master
paths-ignore:
- '**.md'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
REPO_BIN: 'jcs-emacs/binaries'
HASH: 5677ce049377adb6147ac8e3b5e04ad8b7da13fb
jobs:
test:
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
emacs-version: [29.1]
experimental: [false]
include:
- os: ubuntu-latest
emacs-version: snapshot
experimental: true
- os: macos-latest
emacs-version: snapshot
experimental: true
- os: windows-latest
emacs-version: snapshot
experimental: true
steps:
- uses: jcs090218/setup-emacs@master
with:
version: ${{ matrix.emacs-version }}
- uses: actions/checkout@v4
- name: Copy configuration files
run: |
chmod -R 777 ./
make copy_config
- name: Test startup
run: make startup
- name: Checkout binaries repository
uses: actions/checkout@v4
with:
repository: ${{ env.REPO_BIN }}
persist-credentials: false
fetch-depth: 0
- name: Create LFS file list
run: git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id
- name: Restore LFS cache
uses: actions/cache@v3
id: lfs-cache
with:
path: .git/lfs
key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }}
- name: Git LFS Pull
continue-on-error: true
run: |
git lfs pull
git add .
git reset --hard
- name: Remove before creating tar file
uses: JesseTG/[email protected]
with:
path: main.tar
- name: Zipping .emacs.d
run: tar -C $HOME -cvf ~/main.tar .emacs.d
- name: Set git config
run: |
git config user.name github-actions
git config user.email [email protected]
git config receive.denynonfastforwards false
- name: Commit zipped .emacs.d
continue-on-error: true
run: |
git pull
git reset --hard ${{ env.HASH }}
mv ~/main.tar ./
git add .
git commit -m "Update .emacs.d - main.tar"
- name: Push
uses: jcs090218/github-push-action@master
with:
repository: ${{ env.REPO_BIN }}
github_token: ${{ secrets.PAT }}
branch: master
rebase: false
force: true
retry: 7