test cargo build opts
Some checks failed
PikaOS Package Build Only (Canary) (amd64-v3) / build (push) Failing after 18s
Some checks failed
PikaOS Package Build Only (Canary) (amd64-v3) / build (push) Failing after 18s
This commit is contained in:
parent
61490c3124
commit
49ebbbc7bc
2
.github/build-canary-v3
vendored
2
.github/build-canary-v3
vendored
@ -1 +1 @@
|
|||||||
2
|
3
|
||||||
|
2
debian/changelog
vendored
2
debian/changelog
vendored
@ -1,4 +1,4 @@
|
|||||||
wayshot (1.3.1.git-101pika2) pika; urgency=medium
|
wayshot (1.3.1.git-101pika3) pika; urgency=medium
|
||||||
|
|
||||||
* Update to PikaOS 4
|
* Update to PikaOS 4
|
||||||
|
|
||||||
|
21
debian/rules
vendored
21
debian/rules
vendored
@ -9,9 +9,28 @@ export PIKA_BUILD_ARCH = $(shell cat pika-build-arch)
|
|||||||
override_dh_prep:
|
override_dh_prep:
|
||||||
# amd64 build prep
|
# amd64 build prep
|
||||||
ifeq (amd64-v3,$(PIKA_BUILD_ARCH))
|
ifeq (amd64-v3,$(PIKA_BUILD_ARCH))
|
||||||
export RUSTFLAGS = "-C target-cpu=x86-64-v35 -Clinker-plugin-lto -Copt-level=34"
|
export RUSTFLAGS = "-C target-cpu=x86-64-v3 -Clinker-plugin-lto -Copt-level=3"
|
||||||
|
BUILDFLAGS := "--release -C target-cpu=x86-64-v3 -Clinker-plugin-lto -Copt-level=3"
|
||||||
|
else
|
||||||
|
BUILDFLAGS := --release
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
BINARY := wayshot
|
||||||
|
TARGET_DIR := $(DESTDIR)/usr/bin
|
||||||
|
SOURCE_DIR := ./target/release
|
||||||
|
MAN1_DIR := /usr/share/man/man1
|
||||||
|
MAN7_DIR := /usr/share/man/man7
|
||||||
|
|
||||||
|
override_dh_auto_build:
|
||||||
|
cargo build $(BUILDFLAGS)
|
||||||
|
|
||||||
|
override_dh_auto_install:
|
||||||
|
mkdir -p $(TARGET_DIR)
|
||||||
|
cp $(SOURCE_DIR)/$(BINARY) $(TARGET_DIR)
|
||||||
|
chmod +x $(TARGET_DIR)/$(BINARY)
|
||||||
|
find ./docs -type f -iname "*.1.gz" -exec cp {} $(MAN1_DIR) \;
|
||||||
|
find ./docs -type f -iname "*.7.gz" -exec cp {} $(MAN7_DIR) \;
|
||||||
|
|
||||||
## This here will start the build:
|
## This here will start the build:
|
||||||
%:
|
%:
|
||||||
dh $@
|
dh $@
|
||||||
|
1
main.sh
1
main.sh
@ -12,7 +12,6 @@ echo "$PIKA_BUILD_ARCH" > pika-build-arch
|
|||||||
#git clone https://github.com/waycrate/wayshot.git --recurse-submodules -b "$VERSION"
|
#git clone https://github.com/waycrate/wayshot.git --recurse-submodules -b "$VERSION"
|
||||||
git clone https://github.com/waycrate/wayshot.git --recurse-submodules
|
git clone https://github.com/waycrate/wayshot.git --recurse-submodules
|
||||||
cp -rvf ./debian ./wayshot
|
cp -rvf ./debian ./wayshot
|
||||||
cp -vf ./Makefile ./wayshot
|
|
||||||
cd ./wayshot
|
cd ./wayshot
|
||||||
|
|
||||||
# Get build deps
|
# Get build deps
|
||||||
|
Loading…
Reference in New Issue
Block a user