-
Notifications
You must be signed in to change notification settings - Fork 1
65 lines (56 loc) · 1.79 KB
/
build-spelling.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
name: Build spelling (Ubuntu-20)
on:
workflow_dispatch:
inputs:
refToBuild:
description: 'Branch, tag or commit SHA1 to build'
default: ''
required: false
type: string
refToHelpAsset:
description: 'Run-ID of build with help-ehf asset (not used)'
default: ''
required: false
type: string
jobs:
build:
runs-on: ubuntu-20.04
name: Build on ${{ matrix.distro }} ${{ matrix.arch }}
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ inputs.refToBuild }}
- name: Compile linux5 mec
run: |
mkdir downloads
mkdir packages
cd ./microemacs/src
./build.sh -t c
- name: Generate spelling packages
run: |
export PATH=`pwd`/microemacs/bin/linux5-intel64-gcc9:$PATH
export MEVER=`mec -p @microemacs/contribs/ver.emf`
cd ./microemacs/spelling
declare -a lsl=("dede" "elgr" "engb" "enus" "eses" "fifi" "frfr" "itit" "plpl" "ptpt" "ruru")
for ii in "${lsl[@]}"
do
echo "Language $ii"
rm -rf tfs
mkdir -p tfs/spelling
cp *${ii}* tfs/spelling
cd tfs
zip -r ../../../downloads/Jasspa_MicroEmacs_${MEVER}_spelling_${ii} spelling
cd ..
tfs -o ../../packages/Jasspa_MicroEmacs_${MEVER}_ls${ii}.tfs -a ../mesingle/tfs_hd tfs
done
- name: Upload spelling downloads
uses: actions/upload-artifact@v4
with:
name: spelling-downloads
path: downloads
- name: Upload spelling packages
uses: actions/upload-artifact@v4
with:
name: spelling-packages
path: packages