Skip to content

Commit

Permalink
feat(CI): enable rocky builds
Browse files Browse the repository at this point in the history
  • Loading branch information
M0Rf30 committed Sep 4, 2022
1 parent e09213b commit f582dcf
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/checkout@v3

# Runs a set of commands using the runners shell
- name: Detect version
Expand All @@ -31,8 +31,11 @@ jobs:
- name: Build
run: |
docker run -v $(pwd)/.ccache:/ccache -v $(pwd):/project -e CCACHE_DIR=/ccache packagefoundation/yap-ubuntu-focal:latest build ubuntu-focal packages
docker run -v $(pwd)/.ccache:/ccache -v $(pwd):/project -e CCACHE_DIR=/ccache packagefoundation/yap-rocky-8:latest build rocky-8 packages
mkdir artifacts_ci
sudo mv artifacts/*.deb artifacts_ci
sudo mv artifacts/*.rpm artifacts_ci
for i in $(ls artifacts_ci/); do sha256sum artifacts_ci/$i >> artifacts_ci/SHA256SUMS; done
- name: Archive production artifacts
Expand All @@ -51,4 +54,6 @@ jobs:
title: "cie-middleware-${{ steps.version.outputs.version }}"
files: |
artifacts_ci/*.deb
artifacts_ci/*.rpm
artifacts_ci/SHA256SUMS
18 changes: 9 additions & 9 deletions packages/cie-middleware/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
targets=(
"archlinux"
"arch"
"fedora"
"opensuse"
"ubuntu"
)
pkgname="cie-middleware"
pkgver="1.4.3.2"
pkgver="1.4.3.3"
pkgrel="1"
pkgdesc="A fork of Middleware della CIE (Carta di Identità Elettronica) per Linux"
pkgdesclong=("A fork of Middleware della CIE (Carta di Identità Elettronica) per Linux")
Expand All @@ -20,7 +19,7 @@ sources=(
"https://github.com/M0Rf30/cie-middleware-linux/releases/download/podofo-1.4.2/libpodofo-1.4.2.tar.gz"
"https://downloads.gradle-dn.com/distributions/gradle-7.4.2-bin.zip"
)
sources:archlinux=(
sources:pacman=(
"https://github.com/M0Rf30/cie-middleware-linux/archive/main.tar.gz"
"https://github.com/M0Rf30/cie-middleware-linux/releases/download/podofo-1.4.2/libpodofo-1.4.2.tar.gz"
)
Expand All @@ -30,7 +29,7 @@ hashsums=(
"ef81e439b12aa2ff309b353399c033bd62b027e7bd4cbf649c025226f1de5287"
"skip"
)
hashsums:archlinux=(
hashsums:pacman=(
"skip"
"ef81e439b12aa2ff309b353399c033bd62b027e7bd4cbf649c025226f1de5287"
)
Expand Down Expand Up @@ -67,7 +66,7 @@ depends:pacman=(
"curl"
"fontconfig"
"freetype2"
"java-runtime"
"jre11-openjdk"
"libpng"
"libxml2"
"openssl"
Expand All @@ -80,6 +79,7 @@ makedepends:pacman=(
"fontconfig"
"freetype2"
"gradle"
"jdk11-openjdk"
"libpng"
"libxml2"
"meson"
Expand Down Expand Up @@ -115,7 +115,7 @@ makedepends:yum=(
"pkgconf-pkg-config"
)

build:archlinux() {
build:pacman() {
export JAVA_HOME=/usr/lib/jvm/default/
cp "${srcdir}/libpodofo.a" \
"${srcdir}/${pkgname}-linux-main/libs/lib"
Expand All @@ -127,7 +127,7 @@ build:archlinux() {
meson compile -C builddir
}

build:fedora() {
build:yum() {
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk/
cp "${srcdir}/libpodofo.a" \
"${srcdir}/${pkgname}-linux-main/libs/lib"
Expand All @@ -139,7 +139,7 @@ build:fedora() {
meson compile -C builddir
}

build:ubuntu() {
build:apt() {
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
pip3 install ninja==1.10.2.3 meson==0.61.1
cp "${srcdir}/libpodofo.a" \
Expand Down

0 comments on commit f582dcf

Please sign in to comment.