Skip to content

Commit d1dfc45

Browse files
committed
configure build yaml for offline subprojects
1 parent ed403b1 commit d1dfc45

File tree

2 files changed

+27
-2
lines changed

2 files changed

+27
-2
lines changed

.github/workflows/build.yml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,30 @@ jobs:
1515
- uses: elementary/actions/vala-lint@master
1616
with:
1717
conf: vala-lint.conf
18+
prepare-subprojects:
19+
runs-on: ubuntu-latest
20+
outputs:
21+
subprojects-artifact: subprojects
22+
steps:
23+
- uses: actions/checkout@v4
24+
25+
- name: Ensure meson
26+
run: |
27+
sudo apt-get update
28+
sudo apt-get install -y git python3-pip ninja-build
29+
pip3 install meson==1.8.2
30+
31+
- name: Download meson subprojects (host)
32+
run: meson subprojects download
33+
34+
- name: Upload subprojects artifact
35+
uses: actions/upload-artifact@v4
36+
with:
37+
name: subprojects
38+
path: subprojects
1839
flatpak-builder:
1940
name: "Flatpak Builder"
20-
needs: [ lint ]
41+
needs: [ lint, prepare-subprojects ]
2142
container:
2243
image: ghcr.io/flathub-infra/flatpak-github-actions:gnome-48
2344
options: --privileged
@@ -30,6 +51,10 @@ jobs:
3051
runs-on: ${{ matrix.variant.runner }}
3152
steps:
3253
- uses: actions/checkout@v4
54+
- uses: actions/download-artifact@v4
55+
with:
56+
name: subprojects
57+
path: ./subprojects
3358
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6
3459
with:
3560
bundle: "com.k0vcz.artemis.Devel.flatpak"

subprojects/blueprint-compiler.wrap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[wrap-git]
22
directory = blueprint-compiler
3-
url = https://github.com/GNOME/blueprint-compiler.git
3+
url = https://gitlab.gnome.org/GNOME/blueprint-compiler.git
44
revision = main
55
depth = 1
66

0 commit comments

Comments
 (0)