Build spelling (Ubuntu-20) #19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |