gitlabci: Fix flatpak issue building only master.
This commit is contained in:
parent
260e6015a1
commit
2f2f11b7bc
@ -17,7 +17,7 @@ stages:
|
|||||||
- mkdir -p .cargo_cache
|
- mkdir -p .cargo_cache
|
||||||
# Only stuff inside the repo directory can be cached
|
# Only stuff inside the repo directory can be cached
|
||||||
# Override the CARGO_HOME variable to force it location
|
# Override the CARGO_HOME variable to force it location
|
||||||
- export CARGO_HOME="${PWD}/.cargo_cache"
|
- export CARGO_HOME=".cargo_cache"
|
||||||
script:
|
script:
|
||||||
- rustc -Vv && cargo -Vv
|
- rustc -Vv && cargo -Vv
|
||||||
# Force regeneration of gresources regardless of artifacts chage
|
# Force regeneration of gresources regardless of artifacts chage
|
||||||
@ -30,7 +30,7 @@ stages:
|
|||||||
# JOB_NAME - Each job will have it's own cache
|
# JOB_NAME - Each job will have it's own cache
|
||||||
# COMMIT_REF_SLUG = Lowercase name of the branch
|
# COMMIT_REF_SLUG = Lowercase name of the branch
|
||||||
# ^ Keep diffrerent caches for each branch
|
# ^ Keep diffrerent caches for each branch
|
||||||
key: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
|
key: "$CI_JOB_NAME"
|
||||||
paths:
|
paths:
|
||||||
- target/
|
- target/
|
||||||
- .cargo_cache/
|
- .cargo_cache/
|
||||||
@ -49,8 +49,19 @@ flatpak:
|
|||||||
image: registry.gitlab.com/alatiera/gnome-nightly-oci/rust-bundle:latest
|
image: registry.gitlab.com/alatiera/gnome-nightly-oci/rust-bundle:latest
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- flatpak-builder --force-clean --repo=repo app org.gnome.Hammond.json
|
# Build the flatpak repo
|
||||||
|
- flatpak-builder --stop-at=hammond app org.gnome.Hammond.json
|
||||||
|
- flatpak-builder --run app org.gnome.Hammond.json meson --prefix=/app --libdir=/app/lib _build
|
||||||
|
- flatpak-builder --run app org.gnome.Hammond.json ninja -C _build install
|
||||||
|
- flatpak-builder --finish-only app org.gnome.Hammond.json
|
||||||
|
- flatpak build-export repo app
|
||||||
|
|
||||||
|
# Create a flatpak bundle
|
||||||
- flatpak build-bundle repo hammond-dev.flatpak org.gnome.Hammond
|
- flatpak build-bundle repo hammond-dev.flatpak org.gnome.Hammond
|
||||||
|
# Run the tests
|
||||||
|
# - flatpak-builder --run app org.gnome.Hammond.json ./scripts/release_tests.sh
|
||||||
|
# - flatpak-builder --run app org.gnome.Hammond.json ninja -C _build test
|
||||||
|
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- hammond-dev.flatpak
|
- hammond-dev.flatpak
|
||||||
@ -60,7 +71,7 @@ flatpak:
|
|||||||
# JOB_NAME - Each job will have it's own cache
|
# JOB_NAME - Each job will have it's own cache
|
||||||
# COMMIT_REF_SLUG = Lowercase name of the branch
|
# COMMIT_REF_SLUG = Lowercase name of the branch
|
||||||
# ^ Keep diffrerent caches for each branch
|
# ^ Keep diffrerent caches for each branch
|
||||||
key: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
|
key: "$CI_JOB_NAME"
|
||||||
paths:
|
paths:
|
||||||
- .flatpak-builder/cache/
|
- .flatpak-builder/cache/
|
||||||
- target/
|
- target/
|
||||||
|
|||||||
@ -33,7 +33,7 @@
|
|||||||
},
|
},
|
||||||
"modules" : [
|
"modules" : [
|
||||||
{
|
{
|
||||||
"name" : "Hammond",
|
"name" : "hammond",
|
||||||
"buildsystem" : "meson",
|
"buildsystem" : "meson",
|
||||||
"sources" : [
|
"sources" : [
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user