2022-08-16 11:16:52 +00:00
|
|
|
# Change the look of Adwaita, with ease
|
|
|
|
# Copyright (C) 2022 Gradience Team
|
|
|
|
#
|
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
|
2023-01-03 22:55:02 +00:00
|
|
|
name: Build
|
2022-12-27 20:28:58 +00:00
|
|
|
|
2022-08-10 17:00:23 +00:00
|
|
|
on:
|
|
|
|
push:
|
2023-01-18 00:04:00 +00:00
|
|
|
branches: [ "main" ]
|
2023-05-04 18:42:42 +00:00
|
|
|
paths-ignore:
|
2023-05-04 18:46:19 +00:00
|
|
|
- '**/*.md'
|
2022-12-25 11:20:24 +00:00
|
|
|
pull_request:
|
2023-05-04 18:46:19 +00:00
|
|
|
paths-ignore:
|
|
|
|
- '**/*.md'
|
2022-12-27 20:28:58 +00:00
|
|
|
|
2022-08-10 17:00:23 +00:00
|
|
|
jobs:
|
|
|
|
flatpak:
|
2023-01-18 00:04:00 +00:00
|
|
|
name: Flatpak
|
2022-08-10 17:00:23 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container:
|
2022-08-10 17:05:23 +00:00
|
|
|
image: bilelmoussaoui/flatpak-github-actions:gnome-nightly
|
2022-08-10 17:00:23 +00:00
|
|
|
options: --privileged
|
2022-08-19 17:34:57 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-09-20 14:40:44 +00:00
|
|
|
arch: [x86_64, aarch64]
|
2022-08-19 17:34:57 +00:00
|
|
|
# Don't fail the whole workflow if one architecture fails
|
|
|
|
fail-fast: false
|
2022-08-10 17:00:23 +00:00
|
|
|
steps:
|
2023-01-18 00:04:00 +00:00
|
|
|
- name: Checkout
|
2023-09-05 07:33:43 +00:00
|
|
|
uses: actions/checkout@v4
|
2023-01-18 00:04:00 +00:00
|
|
|
|
2023-05-04 13:24:18 +00:00
|
|
|
with:
|
|
|
|
submodules: recursive
|
|
|
|
|
2023-01-18 00:04:00 +00:00
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
dnf -y install docker
|
|
|
|
|
|
|
|
- name: Set up QEMU
|
|
|
|
id: qemu
|
2023-06-08 08:00:45 +00:00
|
|
|
uses: docker/setup-qemu-action@v2.2.0
|
2023-01-18 00:04:00 +00:00
|
|
|
with:
|
|
|
|
platforms: arm64
|
|
|
|
|
2023-05-02 17:32:25 +00:00
|
|
|
- uses: flatpak/flatpak-github-actions/flatpak-builder@v5
|
2023-01-18 00:04:00 +00:00
|
|
|
with:
|
2023-05-02 12:31:18 +00:00
|
|
|
repository-name: gnome-nightly
|
2023-01-18 00:04:00 +00:00
|
|
|
bundle: gradience-devel.flatpak
|
|
|
|
manifest-path: build-aux/flatpak/com.github.GradienceTeam.Gradience.Devel.json
|
|
|
|
cache-key: flatpak-builder-${{ github.sha }}
|
|
|
|
arch: ${{ matrix.arch }}
|