From 5256878b9c544ee489985ac99c32ce8510d3ffec Mon Sep 17 00:00:00 2001 From: Chewing_Bever Date: Mon, 6 Jun 2022 23:09:29 +0200 Subject: [PATCH] Stop building for arm64; build microarch-optimised packages --- .woodpecker.yml | 18 ++++++++++++------ PKGBUILD | 2 +- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 3bc8b0b..867ec45 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,10 +1,16 @@ matrix: - PLATFORM: - - linux/amd64 - - linux/arm64 + # PLATFORM: + # - linux/amd64 + # - linux/arm64 + + ARCH: + # tuur + - tigerlake + # cenny + - skylake branches: master -platform: ${PLATFORM} +platform: linux/amd64 when: event: push @@ -24,12 +30,12 @@ pipeline: - "echo 'builder ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers" - su builder # Build the package - - MAKEFLAGS="-j$(nproc)" makepkg -s --noconfirm --needed + - MAKEFLAGS="-j$(nproc)" makepkg -s --noconfirm --needed CFLAGS="-O3 -flto -march=${ARCH}" publish: image: 'curlimages/curl' commands: # Publish the package - - 'curl -s -XPOST -H "X-API-KEY: $API_KEY" -T "$(ls *.pkg*)" https://arch.r8r.be/jjr/publish' + - 'curl -s -XPOST -H "X-API-KEY: $API_KEY" -T "$(ls *.pkg*)" https://arch.r8r.be/jjr-${ARCH}/publish' secrets: - api_key diff --git a/PKGBUILD b/PKGBUILD index 5860988..d5de2a3 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -36,7 +36,7 @@ sha256sums=('1a10fac42d03b3a1231cd6998a73fb4ab4f191694628953e7229f6de2053a985' 'f767c242485eb537f0df13cbcc182980d29152a6e25036cf65f334fb3ae8b29e') build() { - make + make CFLAGS="$CFLAGS" } package() {