-
-
Notifications
You must be signed in to change notification settings - Fork 10
56 lines (44 loc) · 1.5 KB
/
Copy pathci.yml
File metadata and controls
56 lines (44 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
name: CI
on:
pull_request:
paths:
- io.elementary.Sdk.json.in
- .github/workflows/ci.yml
types:
- opened
- reopened
- synchronize
jobs:
build:
name: Build (${{ matrix.configuration.name }})
runs-on: ${{ matrix.configuration.runs-on }}
strategy:
fail-fast: false
matrix:
configuration:
- name: x86
runs-on: ubuntu-24.04
architecture: x86_64
- name: ARM
runs-on: ubuntu-24.04-arm
architecture: aarch64
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Clean
uses: ./.github/actions/maximize-build-space
- name: Setup
run: |
sudo apt update
sudo apt install -y ccache flatpak flatpak-builder meson xvfb zstd
sudo rm -rf /var/lib/{apt,dpkg,cache,log}/
sudo flatpak remote-add --system --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
- name: Build
env:
DISPLAY: "0:0"
run: |
meson setup build --cross-file="architectures/${{ matrix.configuration.architecture }}.crossfile"
sudo xvfb-run --auto-servernum flatpak-builder --arch=${{ matrix.configuration.architecture }} --disable-rofiles-fuse --keep-build-dirs --install-deps-from=flathub --ccache --repo=elementary /mnt/builddir --state-dir=/mnt/.flatpak-builder ./build/io.elementary.Sdk.json
- name: Fix Permissions
run: sudo chown -R runner:docker .