mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-08-02 06:08:42 +00:00
feat: rework gitlab ci around arch; add appimage build
This commit is contained in:
parent
803fc87442
commit
de9608e0cf
3 changed files with 22 additions and 13 deletions
|
@ -1,14 +1,26 @@
|
||||||
image: "rust:alpine"
|
image: "archlinux:base-devel"
|
||||||
|
|
||||||
test:cargo:
|
stages:
|
||||||
|
- test
|
||||||
|
- deploy
|
||||||
|
|
||||||
|
cargo:test:
|
||||||
|
stage: test
|
||||||
script:
|
script:
|
||||||
- apk add gtk4.0-dev libadwaita-dev musl-dev openssl-dev desktop-file-utils meson git
|
- pacman -Syu gtk4 libadwaita gtksourceview5 openssl desktop-file-utils meson ninja git rust bash fuse2 --needed --noconfirm
|
||||||
- rustc --version && cargo --version # Print version info for debugging
|
- rustc --version && cargo --version # Print version info for debugging
|
||||||
- meson setup build -Dprefix="$PWD/build/localprefix" -Dprofile=development
|
- meson setup build -Dprefix="$PWD/build/localprefix" -Dprofile=development
|
||||||
- ninja -C build
|
- ninja -C build
|
||||||
- cargo test --workspace --verbose
|
- cargo test --workspace --verbose
|
||||||
|
cache:
|
||||||
|
paths:
|
||||||
|
- /var/cache/pacman
|
||||||
|
|
||||||
# deploy:
|
appimage:
|
||||||
# stage: deploy
|
stage: deploy
|
||||||
# script: echo "Define your deployment script!"
|
script:
|
||||||
# environment: production
|
- pacman -Syu gtk4 libadwaita gtksourceview5 openssl desktop-file-utils meson ninja git rust bash fuse2 --needed --noconfirm
|
||||||
|
- bash ./dist/appimage/build_appimage.sh
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- Rex2-*.AppImage
|
||||||
|
|
2
dist/appimage/build_appimage.sh
vendored
2
dist/appimage/build_appimage.sh
vendored
|
@ -10,9 +10,11 @@ fi
|
||||||
meson setup appimage_build -Dprefix=/usr -Dprofile=development
|
meson setup appimage_build -Dprefix=/usr -Dprofile=development
|
||||||
DESTDIR="$PWD/AppDir" ninja -C appimage_build install
|
DESTDIR="$PWD/AppDir" ninja -C appimage_build install
|
||||||
curl -SsLO https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
|
curl -SsLO https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
|
||||||
|
chmod +x linuxdeploy-x86_64.AppImage
|
||||||
cp dist/appimage/linuxdeploy-plugin-gtk.sh ./
|
cp dist/appimage/linuxdeploy-plugin-gtk.sh ./
|
||||||
|
|
||||||
./linuxdeploy-x86_64.AppImage \
|
./linuxdeploy-x86_64.AppImage \
|
||||||
|
--appimage-extract-and-run \
|
||||||
--appdir AppDir \
|
--appdir AppDir \
|
||||||
--plugin gtk \
|
--plugin gtk \
|
||||||
--output appimage \
|
--output appimage \
|
||||||
|
|
|
@ -19,12 +19,7 @@
|
||||||
"path": null,
|
"path": null,
|
||||||
"repo": null
|
"repo": null
|
||||||
},
|
},
|
||||||
"mercury": {
|
"mercury_enabled": false
|
||||||
"feature_type": "Mercury",
|
|
||||||
"enabled": false,
|
|
||||||
"path": null,
|
|
||||||
"repo": null
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"environment": {
|
"environment": {
|
||||||
"XRT_COMPOSITOR_SCALE_PERCENTAGE": "140",
|
"XRT_COMPOSITOR_SCALE_PERCENTAGE": "140",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue