-
Notifications
You must be signed in to change notification settings - Fork 1
65 lines (58 loc) · 1.8 KB
/
build-pacman-package.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
name: Build Msys2 Pacman package (Windows-2022)
on:
workflow_dispatch:
branches: [ master ]
env:
VERSION: "20241201"
jobs:
msys2-ucrt64:
runs-on: windows-latest
name: Build on ${{ matrix.distro }} ${{ matrix.arch }}
defaults:
run:
shell: msys2 {0}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Msys setup
uses: msys2/setup-msys2@v2
with:
msystem: UCRT64
update: true
install: git unzip
- name: Initial file checking
shell: msys2 {0}
run: |
ls
pwd
cd microemacs/packages/msys2
ls
which bash
- name: Downloading ME Zip files and creating package structure
shell: msys2 {0}
run: |
ls
pwd
cd microemacs/packages/msys2
VRS=`curl https://github.com/bjasspa/jasspa/releases/latest -s -L -I -o /dev/null -w '%{url_effective}' | sed -E 's/.+me_//'`
echo "VRS=$VRS" >> $GITHUB_ENV
export VRS=$VRS
echo $VRS
sed -i "s/__VERSION__/${VRS}/" PKGBUILD.tpl
bash tpl2pkg.sh ${VRS} PKGBUILD.tpl
ls microemacs-package
cd microemacs-package
ls -lr
- name: Creating package file
shell: msys2 {0}
run: |
cd microemacs/packages/msys2/microemacs-package
makepkg -f
ls -lh
makepkg -si --noconfirm
mesc -V
- name: Upload Windows Msys 2 downloads
uses: actions/upload-artifact@v4
with:
name: microemacs-${{ env.VRS }}-1-x86_64.pkg.tar.zst
path: microemacs/packages/msys2/microemacs-package/microemacs-${{ env.VRS }}-1-x86_64.pkg.tar.zst