Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/build-appimage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,13 @@ jobs:

- name: Configure CMake
run: |
TAG=$(grep "tag:" manifest.yaml | cut -d'"' -f2)
COMMIT=$(grep "short_rev:" manifest.yaml | cut -d'"' -f2)
cmake -S . -B build -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX="${INSTALL_DIR}"
-DCMAKE_INSTALL_PREFIX="${INSTALL_DIR}" \
-DVICINAE_GIT_TAG="$TAG" \
-DVICINAE_GIT_COMMIT_HASH="$COMMIT"

- name: Build
run: cmake --build build --parallel $(nproc)
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,14 +144,16 @@ jobs:

- name: Configure CMake
run: |
TAG=$(grep "tag:" manifest.yaml | cut -d'"' -f2)
COMMIT=$(grep "short_rev:" manifest.yaml | cut -d'"' -f2)
cd build
cmake -G Ninja .. \
-DCMAKE_BUILD_TYPE=${BUILD_TYPE} \
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
-DCMAKE_INSTALL_PREFIX="${INSTALL_DIR}" \
-DVICINAE_PROVENANCE=appimage \
-DVICINAE_GIT_TAG="${{ needs.build-binary.outputs.tag }}" \
-DVICINAE_GIT_COMMIT_HASH="${{ needs.build-binary.outputs.commit }}" \
-DVICINAE_GIT_TAG="$TAG" \
-DVICINAE_GIT_COMMIT_HASH="$COMMIT" \
-DLTO=ON

- name: Build
Expand Down
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
BUILD_DIR := build
BIN_DIR := build/bin
RM := rm
TAG := $(shell git describe --tags --abbrev=0)
TAG := $(shell grep "tag:" manifest.yaml | cut -d'"' -f2)
COMMIT := $(shell grep "short_rev:" manifest.yaml | cut -d'"' -f2)
APPIMAGE_BUILD_ENV_DIR := ./scripts/runners/appimage/
APPIMAGE_BUILD_ENV_IMAGE_TAG := vicinae/appimage-build-env
FIGURA_CC := $(BIN_DIR)/figura
Expand Down Expand Up @@ -96,7 +97,7 @@ portable:
.PHONY: portable

appimage:
cmake -G Ninja -DCMAKE_INSTALL_PREFIX=./build/install -DVICINAE_PROVENANCE=appimage -B $(BUILD_DIR)
cmake -G Ninja -DCMAKE_INSTALL_PREFIX=./build/install -DVICINAE_PROVENANCE=appimage -DVICINAE_GIT_TAG="$(TAG)" -DVICINAE_GIT_COMMIT_HASH="$(COMMIT)" -B $(BUILD_DIR)
cmake --build $(BUILD_DIR)
cmake --install $(BUILD_DIR)
./scripts/mkappimage.sh ./build/install AppDir
Expand Down