Skip to content

Commit 5f48c6f

Browse files
committed
feat(ci): now build proper AUR compatible artifacts
1 parent 101e285 commit 5f48c6f

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,18 @@ jobs:
3131
image: mpsq/emacs-native-comp-wayland-builder:latest
3232
options: --user root
3333
steps:
34-
- name: Get name
34+
- name: Prepare artifacts
3535
run: |
36-
echo "emacs_artifact_name=$(ls /home/pcr)" >> $GITHUB_ENV
36+
cd /home/pcr
37+
mkdir sources
38+
ver=$(ls emacs* | sed -r 's/.*([0-9]{2}\.[0-9]{1,2}\.[0-9]{1,2}\.[0-9]{6}).*/\1/gi')
39+
#git clone ssh://aur@aur.archlinux.org/emacs-gcc-wayland-devel-bin.git
40+
#old_ver=$(cat PKGBUILD | grep "pkgver=" | sed -r 's/pkgver=//')
41+
#[[ "$old_ver" == "$ver" ]] && exit 1
42+
echo "pkg_version=$ver" >> $GITHUB_ENV
43+
tar xf "$(ls emacs*)" -C sources
44+
rm sources/.BUILDINFO sources/.MTREE sources/.PKGINFO
3745
- uses: actions/upload-artifact@v2
3846
with:
39-
name: ${{ env.emacs_artifact_name }}
40-
path: /home/pcr/${{ env.emacs_artifact_name }}
47+
name: emacs-gcc-wayland-devel-${{ env.pkg_version }}
48+
path: /home/pcr/sources

0 commit comments

Comments
 (0)