Skip to content

Commit

Permalink
msys: change version injection mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
igagis committed Jan 23, 2024
1 parent 3b53dea commit c240e54
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,9 @@ jobs:
key-server: https://gagis.hopto.org/repo/cppfw/pubkey.gpg
- name: git clone
uses: myci-actions/checkout@master
- name: prepare pacman package
run: myci-apply-version.sh --version $(myci-deb-version.sh debian/changelog) msys2/PKGBUILD.in
- name: set PACKAGE_VERSION
uses: myci-actions/export-env-var@master
with: {name: PACKAGE_VERSION, value: $(myci-deb-version.sh debian/changelog)}
- name: build
# to make makepkg-mingw build only one architecture we need to set the MINGW_ARCH
env: {MINGW_ARCH: '${{ matrix.repo }}'}
Expand Down
4 changes: 3 additions & 1 deletion msys2/PKGBUILD.in → msys2/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@ else
exit 1
fi

[ -z "$PACKAGE_VERSION" ] && echo "ERROR: PACKAGE_VERSION env var is not set" && exit 1;

packageName=ruisapp

pkgname="${pkgPrefix}${packageName}"
pkgver=$(version)
pkgver=$PACKAGE_VERSION
pkgrel=1
epoch=
pkgdesc="Platform abstraction layer for 'ruis'"
Expand Down

0 comments on commit c240e54

Please sign in to comment.