From 73e607a803627fa5eb270c38ca25cc4fbccf286f Mon Sep 17 00:00:00 2001 From: Ward from fusion-voyager-3 Date: Mon, 22 Jul 2024 23:25:11 +0300 Subject: [PATCH] v3 o3 lto --- .github/workflows/{build-nest.yml => build-canaryv3.yml} | 6 +++--- .github/workflows/{build-canary.yml => build-nestv3.yml} | 6 +++--- .../workflows/{release-nest.yml => release-canaryv3.yml} | 6 +++--- .../workflows/{release-canary.yml => release-nestv3.yml} | 6 +++--- main.sh => mainv3.sh | 9 +++++++++ 5 files changed, 21 insertions(+), 12 deletions(-) rename .github/workflows/{build-nest.yml => build-canaryv3.yml} (83%) rename .github/workflows/{build-canary.yml => build-nestv3.yml} (84%) rename .github/workflows/{release-nest.yml => release-canaryv3.yml} (83%) rename .github/workflows/{release-canary.yml => release-nestv3.yml} (84%) rename main.sh => mainv3.sh (56%) diff --git a/.github/workflows/build-nest.yml b/.github/workflows/build-canaryv3.yml similarity index 83% rename from .github/workflows/build-nest.yml rename to .github/workflows/build-canaryv3.yml index 18a5bff..61fbee7 100644 --- a/.github/workflows/build-nest.yml +++ b/.github/workflows/build-canaryv3.yml @@ -1,4 +1,4 @@ -name: PikaOS Package Build Only +name: PikaOS Package Build Only (Canary) (amd64-v3) on: workflow_dispatch @@ -7,7 +7,7 @@ jobs: build: runs-on: self-hosted container: - image: ghcr.io/pikaos-linux/pikaos-builder:nest + image: ghcr.io/pikaos-linux/pikaos-builder:canaryv3 volumes: - /proc:/proc options: --privileged -it @@ -31,4 +31,4 @@ jobs: if_key_exists: replace - name: Build Package - run: ./main.sh + run: ./mainv3.sh diff --git a/.github/workflows/build-canary.yml b/.github/workflows/build-nestv3.yml similarity index 84% rename from .github/workflows/build-canary.yml rename to .github/workflows/build-nestv3.yml index dd3e160..0d013ba 100644 --- a/.github/workflows/build-canary.yml +++ b/.github/workflows/build-nestv3.yml @@ -1,4 +1,4 @@ -name: PikaOS Package Build Only (Canary) +name: PikaOS Package Build Only (amd64-v3) on: workflow_dispatch @@ -7,7 +7,7 @@ jobs: build: runs-on: self-hosted container: - image: ghcr.io/pikaos-linux/pikaos-builder:canary + image: ghcr.io/pikaos-linux/pikaos-builder:nestv3 volumes: - /proc:/proc options: --privileged -it @@ -31,4 +31,4 @@ jobs: if_key_exists: replace - name: Build Package - run: ./main.sh + run: ./mainv3.sh diff --git a/.github/workflows/release-nest.yml b/.github/workflows/release-canaryv3.yml similarity index 83% rename from .github/workflows/release-nest.yml rename to .github/workflows/release-canaryv3.yml index abd7383..5b36604 100644 --- a/.github/workflows/release-nest.yml +++ b/.github/workflows/release-canaryv3.yml @@ -1,4 +1,4 @@ -name: PikaOS Package Build & Release +name: PikaOS Package Build & Release (Canary) (amd64-v3) on: workflow_dispatch @@ -7,7 +7,7 @@ jobs: build: runs-on: self-hosted container: - image: ghcr.io/pikaos-linux/pikaos-builder:nest + image: ghcr.io/pikaos-linux/pikaos-builder:canaryv3 volumes: - /proc:/proc options: --privileged -it @@ -31,7 +31,7 @@ jobs: if_key_exists: replace - name: Build Package - run: ./main.sh + run: ./mainv3.sh - name: Release Package run: ./release.sh diff --git a/.github/workflows/release-canary.yml b/.github/workflows/release-nestv3.yml similarity index 84% rename from .github/workflows/release-canary.yml rename to .github/workflows/release-nestv3.yml index 66bbc78..36a34fb 100644 --- a/.github/workflows/release-canary.yml +++ b/.github/workflows/release-nestv3.yml @@ -1,4 +1,4 @@ -name: PikaOS Package Build & Release (Canary) +name: PikaOS Package Build & Release (amd64-v3) on: workflow_dispatch @@ -7,7 +7,7 @@ jobs: build: runs-on: self-hosted container: - image: ghcr.io/pikaos-linux/pikaos-builder:canary + image: ghcr.io/pikaos-linux/pikaos-builder:nestv3 volumes: - /proc:/proc options: --privileged -it @@ -31,7 +31,7 @@ jobs: if_key_exists: replace - name: Build Package - run: ./main.sh + run: ./mainv3.sh - name: Release Package run: ./release.sh diff --git a/main.sh b/mainv3.sh similarity index 56% rename from main.sh rename to mainv3.sh index 1f332d8..c7da355 100755 --- a/main.sh +++ b/mainv3.sh @@ -1,6 +1,15 @@ #! /bin/bash VERSION=$(date '+%Y%m%d') +d +export DEBIAN_FRONTEND="noninteractive" +export DEB_BUILD_MAINT_OPTIONS="optimize=+lto -march=x86-64-v3 -O3 -flto -fuse-linker-plugin -falign-functions=32" +export DEB_CFLAGS_MAINT_APPEND="-march=x86-64-v3 -O3 -flto -fuse-linker-plugin -falign-functions=32" +export DEB_CPPFLAGS_MAINT_APPEND="-march=x86-64-v3 -O3 -flto -fuse-linker-plugin -falign-functions=32" +export DEB_CXXFLAGS_MAINT_APPEND="-march=x86-64-v3 -O3 -flto -fuse-linker-plugin -falign-functions=32" +export DEB_LDFLAGS_MAINT_APPEND="-march=x86-64-v3 -O3 -flto -fuse-linker-plugin -falign-functions=32" +export DEB_BUILD_OPTIONS="nocheck notest terse" +export DPKG_GENSYMBOLS_CHECK_LEVEL=0 # Clone Upstream #git clone https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/